Skip to content

Commit

Permalink
clk: ti: dflt: remove redundant unlikely
Browse files Browse the repository at this point in the history
Commit 7aba4f5 ("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 <[email protected]>
Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
sumananna authored and bebarino committed Apr 15, 2016
1 parent ab98e20 commit c02b73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/ti/clkt_dflt.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int omap2_dflt_clk_enable(struct clk_hw *hw)
}
}

if (unlikely(IS_ERR(clk->enable_reg))) {
if (IS_ERR(clk->enable_reg)) {
pr_err("%s: %s missing enable_reg\n", __func__,
clk_hw_get_name(hw));
ret = -EINVAL;
Expand Down

0 comments on commit c02b73c

Please sign in to comment.