clk: imx: remove redundant initialization of ret to zero
authorColin Ian King <colin.king@canonical.com>
Sun, 9 Dec 2018 15:08:32 +0000 (15:08 +0000)
committerStephen Boyd <sboyd@kernel.org>
Mon, 10 Dec 2018 17:53:13 +0000 (09:53 -0800)
The initialization of ret is redundant as it is being re-assigned to
the return value from the call to imx8m_clk_composite_compute_dividers.
Clean this up by removing the initialization.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-composite-8m.c

index 6d9d371..527ade1 100644 (file)
@@ -93,7 +93,7 @@ static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
        unsigned long flags = 0;
        int prediv_value;
        int div_value;
-       int ret = 0;
+       int ret;
        u32 val;
 
        ret = imx8m_clk_composite_compute_dividers(rate, parent_rate,