summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-12-09 16:08:32 +0100
committerStephen Boyd <sboyd@kernel.org>2018-12-10 18:53:13 +0100
commit33e7a8422546b5cd65d4af4dfe4ed92ea543d8df (patch)
treeef036f1cc62415eb20a1f9e8e3d772f1b026a6c0 /drivers/clk
parentclk: imx: Add SCCG PLL type (diff)
downloadlinux-33e7a8422546b5cd65d4af4dfe4ed92ea543d8df.tar.xz
linux-33e7a8422546b5cd65d4af4dfe4ed92ea543d8df.zip
clk: imx: remove redundant initialization of ret to zero
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/imx/clk-composite-8m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index 6d9d3714b4df..527ade1d6933 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -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,