projects
/
GitHub
/
LineageOS
/
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:
54b3d18
)
clk: delete a local variable's repeated assignment
author
Zhen Lei
<thunder.leizhen@huawei.com>
Fri, 14 Nov 2014 02:10:40 +0000
(10:10 +0800)
committer
Michael Turquette
<mturquette@linaro.org>
Wed, 19 Nov 2014 19:41:18 +0000
(11:41 -0800)
It's the same to the next statement, "ret = clk->parent". I think compiler will
optimize it, it's just not looking well.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 4896ae9e23da0c23ed52872cf1992f95609e1b59..5307225684eb351c49463b1332fdf9eb6e4f9755 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-1614,7
+1614,7
@@
static struct clk *__clk_init_parent(struct clk *clk)
if (clk->num_parents == 1) {
if (IS_ERR_OR_NULL(clk->parent))
-
ret =
clk->parent = __clk_lookup(clk->parent_names[0]);
+ clk->parent = __clk_lookup(clk->parent_names[0]);
ret = clk->parent;
goto out;
}