diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-07-19 16:28:47 +0900 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-08-12 18:17:04 -0700 |
commit | 8a23133c7a2afc49d97b5b27caefe6847d32599e (patch) | |
tree | cb33e1fb60630067f4e6ca97b10dfae71dbdfc38 /drivers | |
parent | 435779fe133626b4e364b320ebc00aac8a0e6047 (diff) | |
download | op-kernel-dev-8a23133c7a2afc49d97b5b27caefe6847d32599e.zip op-kernel-dev-8a23133c7a2afc49d97b5b27caefe6847d32599e.tar.gz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 0c6009a..6298715 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -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 */ if (IS_ERR_OR_NULL(hw)) - return (struct clk *) hw; + return ERR_CAST(hw); clk = kzalloc(sizeof(*clk), GFP_KERNEL); if (!clk) |