projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c736c4e
)
clk: use IS_ERR_OR_NULL(hw) instead of !hw || IS_ERR(hw)
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 20 Nov 2015 05:38:49 +0000
(14:38 +0900)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 20 Nov 2015 17:20:54 +0000
(09:20 -0800)
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>
drivers/clk/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 7429edebbe689b283dfee1126c1c800a5b023484..20d8e07026a17c56116800c3b1a2cd3e78d47e44 100644
(file)
--- 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);