summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-11-20 14:38:49 +0900
committerStephen Boyd <sboyd@codeaurora.org>2015-11-20 09:20:54 -0800
commitc1de13574d7880c7321abe789ef02fa540631eaf (patch)
treecc5da5080cb4520ee778f81e9fe0b63a137bd6a9 /drivers/clk/clk.c
parentc736c4e11e9def555482f3f626254594d3f11f9c (diff)
downloadlinux-c1de13574d7880c7321abe789ef02fa540631eaf.tar.bz2
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 <yamada.masahiro@socionext.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c2
1 files changed, 1 insertions, 1 deletions
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);