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

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: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Masahiro Yamada and committed by
Stephen Boyd
8a23133c 435779fe

+1 -1
+1 -1
drivers/clk/clk.c
··· 2499 2499 2500 2500 /* This is to allow this function to be chained to others */ 2501 2501 if (IS_ERR_OR_NULL(hw)) 2502 - return (struct clk *) hw; 2502 + return ERR_CAST(hw); 2503 2503 2504 2504 clk = kzalloc(sizeof(*clk), GFP_KERNEL); 2505 2505 if (!clk)