瀏覽代碼

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>
Zhen Lei 11 年之前
父節點
當前提交
40ba3f0ff2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/clk/clk.c

+ 1 - 1
drivers/clk/clk.c

@@ -1614,7 +1614,7 @@ static struct clk *__clk_init_parent(struct clk *clk)
 
 
 	if (clk->num_parents == 1) {
 	if (clk->num_parents == 1) {
 		if (IS_ERR_OR_NULL(clk->parent))
 		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;
 		ret = clk->parent;
 		goto out;
 		goto out;
 	}
 	}