clk: imx: remove redundant re-assignment of pll->base
authorColin Ian King <colin.i.king@gmail.com>
Thu, 3 Mar 2022 09:05:08 +0000 (09:05 +0000)
committerStephen Boyd <sboyd@kernel.org>
Wed, 9 Mar 2022 18:39:25 +0000 (10:39 -0800)
There are two identical assignments of pll->base to the same value,
the second assignment is redundant and can be removed.

Cleans up cppcheck warning:
drivers/clk/imx/clk-sscg-pll.c:528:12: style: Variable 'pll->base' is
reassigned a value before the old one has been used. [redundantAssignment]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220303090508.1125175-1-colin.i.king@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-sscg-pll.c

index 9d6cdff..81f304f 100644 (file)
@@ -525,7 +525,6 @@ struct clk_hw *imx_clk_hw_sscg_pll(const char *name,
        init.parent_names = parent_names;
        init.num_parents = num_parents;
 
-       pll->base = base;
        pll->hw.init = &init;
 
        hw = &pll->hw;