aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2014-11-14 10:10:40 +0800
committerMichael Turquette <mturquette@linaro.org>2014-11-19 11:41:18 -0800
commit40ba3f0ff261a14107f3f52c67602fff8b88d980 (patch)
treed7454fed883ce53b409d46cf777f451a4f66787a
parentMerge tag 'v3.19-rockchip-clk1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into clk-next-rockchip (diff)
downloadlinux-rng-40ba3f0ff261a14107f3f52c67602fff8b88d980.tar.xz
linux-rng-40ba3f0ff261a14107f3f52c67602fff8b88d980.zip
clk: delete a local variable's repeated assignment
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>
-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 4896ae9e23da..5307225684eb 100644
--- 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;
}