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:
59fe663
)
clk: remove redundant negative index check in of_clk_get_parent_name()
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 20 Nov 2015 07:36:19 +0000
(16:36 +0900)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 20 Nov 2015 17:18:24 +0000
(09:18 -0800)
This if-block can be dropped because the of_parse_phandle_with_args()
in the following line returns -EINVAL for negative index.
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 f13c3f4228d4d51d5649c3705fd565b4aac82913..7429edebbe689b283dfee1126c1c800a5b023484 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-3062,9
+3062,6
@@
const char *of_clk_get_parent_name(struct device_node *np, int index)
int count;
struct clk *clk;
- if (index < 0)
- return NULL;
-
rc = of_parse_phandle_with_args(np, "clocks", "#clock-cells", index,
&clkspec);
if (rc)