From: Zhen Lei Date: Fri, 14 Nov 2014 02:10:40 +0000 (+0800) Subject: clk: delete a local variable's repeated assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=40ba3f0ff261a14107f3f52c67602fff8b88d980;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Michael Turquette --- 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; }