Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: ti: dflt: remove redundant unlikely

Commit 7aba4f5201d1 ("clk: ti: dflt: fix enable_reg validity check")
fixed a validation check by using an IS_ERR() macro within the
existing unlikely expression, but IS_ERR() macro already has an
unlikely inside it, so get rid of the redundant unlikely macro
from the validation check.

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Suman Anna and committed by
Stephen Boyd
c02b73c9 ab98e20a

+1 -1
+1 -1
drivers/clk/ti/clkt_dflt.c
··· 222 222 } 223 223 } 224 224 225 - if (unlikely(IS_ERR(clk->enable_reg))) { 225 + if (IS_ERR(clk->enable_reg)) { 226 226 pr_err("%s: %s missing enable_reg\n", __func__, 227 227 clk_hw_get_name(hw)); 228 228 ret = -EINVAL;