Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1de1357 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Stephen Boyd
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent c736c4e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);