clk: s2mps11: merge two for loops in one
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 20 Jan 2016 10:14:21 +0000 (19:14 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 29 Jan 2016 20:46:06 +0000 (12:46 -0800)
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: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-s2mps11.c

index d266299dfdb1a26e22477f78a2c389d5dc858f4f..e7b97f4f53d3d616189dbc6fee2c8aa5a6da3b34 100644 (file)
@@ -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;
        }