Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40ba3f0f authored by Zhen Lei's avatar Zhen Lei Committed by Michael Turquette
Browse files

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarMichael Turquette <mturquette@linaro.org>
parent 54b3d182
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}