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

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

clk: use ERR_CAST() for __clk_create_clk()



This code is clear enough, but the intention will be even clearer
with this.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 435779fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2499,7 +2499,7 @@ struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id,


	/* This is to allow this function to be chained to others */
	/* This is to allow this function to be chained to others */
	if (IS_ERR_OR_NULL(hw))
	if (IS_ERR_OR_NULL(hw))
		return (struct clk *) hw;
		return ERR_CAST(hw);


	clk = kzalloc(sizeof(*clk), GFP_KERNEL);
	clk = kzalloc(sizeof(*clk), GFP_KERNEL);
	if (!clk)
	if (!clk)