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

Commit 26adc5fa authored by Andi Shyti's avatar Andi Shyti Committed by Stephen Boyd
Browse files

clk: s2mps11: merge two for loops in one



The driver already loops once, there is no reason to loop again
for a different purpose. Merge the second loop into the first.

Signed-off-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 50359819
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -244,12 +244,6 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
			ret = -ENOMEM;
			goto err_reg;
		}
	}

	for (i = 0; i < S2MPS11_CLKS_NUM; i++) {
		/* Skip clocks not present on S2MPS14 */
		if (!clks_init[i].name)
			continue;
		clk_table[i] = s2mps11_clks[i].clk;
	}