clk: imx: pll14xx: drop unused variable
authorPeng Fan <peng.fan@nxp.com>
Thu, 25 Apr 2019 10:14:28 +0000 (10:14 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 21:42:02 +0000 (14:42 -0700)
It does not make sense to only get value from pll->base and assign
to a local variable when recalc_rate.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-pll14xx.c

index 1acfa3e..12e5841 100644 (file)
@@ -74,10 +74,9 @@ static unsigned long clk_pll1416x_recalc_rate(struct clk_hw *hw,
                                                  unsigned long parent_rate)
 {
        struct clk_pll14xx *pll = to_clk_pll14xx(hw);
-       u32 mdiv, pdiv, sdiv, pll_gnrl, pll_div;
+       u32 mdiv, pdiv, sdiv, pll_div;
        u64 fvco = parent_rate;
 
-       pll_gnrl = readl_relaxed(pll->base);
        pll_div = readl_relaxed(pll->base + 4);
        mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT;
        pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT;
@@ -93,11 +92,10 @@ static unsigned long clk_pll1443x_recalc_rate(struct clk_hw *hw,
                                                  unsigned long parent_rate)
 {
        struct clk_pll14xx *pll = to_clk_pll14xx(hw);
-       u32 mdiv, pdiv, sdiv, pll_gnrl, pll_div_ctl0, pll_div_ctl1;
+       u32 mdiv, pdiv, sdiv, pll_div_ctl0, pll_div_ctl1;
        short int kdiv;
        u64 fvco = parent_rate;
 
-       pll_gnrl = readl_relaxed(pll->base);
        pll_div_ctl0 = readl_relaxed(pll->base + 4);
        pll_div_ctl1 = readl_relaxed(pll->base + 8);
        mdiv = (pll_div_ctl0 & MDIV_MASK) >> MDIV_SHIFT;