From: Masahiro Yamada Date: Fri, 20 Nov 2015 05:38:49 +0000 (+0900) Subject: clk: use IS_ERR_OR_NULL(hw) instead of !hw || IS_ERR(hw) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1de13574d7880c7321abe789ef02fa540631eaf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git clk: use IS_ERR_OR_NULL(hw) instead of !hw || IS_ERR(hw) This minor refactoring does not change the function behavior. Signed-off-by: Masahiro Yamada Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7429edebbe68..20d8e07026a1 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2482,7 +2482,7 @@ struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id, struct clk *clk; /* This is to allow this function to be chained to others */ - if (!hw || IS_ERR(hw)) + if (IS_ERR_OR_NULL(hw)) return (struct clk *) hw; clk = kzalloc(sizeof(*clk), GFP_KERNEL);