clk: imx: drop redundant initialization
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 12 Feb 2020 09:03:00 +0000 (17:03 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 17 Feb 2020 06:32:32 +0000 (14:32 +0800)
No need to initialize flags as 0, remove the initialization.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-composite-8m.c
drivers/clk/imx/clk-fixup-div.c
drivers/clk/imx/clk-fixup-mux.c
drivers/clk/imx/clk-gate2.c

index 4869c16376bfecb7809d35672a9814dafa049aee..99773519b5a504e9e989b37d563f7868a71d5dc6 100644 (file)
@@ -92,7 +92,7 @@ static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
                                        unsigned long parent_rate)
 {
        struct clk_divider *divider = to_clk_divider(hw);
-       unsigned long flags = 0;
+       unsigned long flags;
        int prediv_value;
        int div_value;
        int ret;
index 4b17b91504edd591f1f2c2355d177c26e4cc83ce..100ca828b052d701be84b62378844c1a9fcc1aaa 100644 (file)
@@ -55,7 +55,7 @@ static int clk_fixup_div_set_rate(struct clk_hw *hw, unsigned long rate,
        struct clk_fixup_div *fixup_div = to_clk_fixup_div(hw);
        struct clk_divider *div = to_clk_divider(hw);
        unsigned int divider, value;
-       unsigned long flags = 0;
+       unsigned long flags;
        u32 val;
 
        divider = parent_rate / rate;
index b569d919c64563f4ee7dc11e3343bea9d7b7cbee..58a67630bb6aabdbedd042c32f45c27babf39c92 100644 (file)
@@ -42,7 +42,7 @@ static int clk_fixup_mux_set_parent(struct clk_hw *hw, u8 index)
 {
        struct clk_fixup_mux *fixup_mux = to_clk_fixup_mux(hw);
        struct clk_mux *mux = to_clk_mux(hw);
-       unsigned long flags = 0;
+       unsigned long flags;
        u32 val;
 
        spin_lock_irqsave(mux->lock, flags);
index 7d44ce8148063976a0fd55710786b7b67a1b90a7..72a7698be7915981def3670c9dc21cbe954ac20d 100644 (file)
@@ -40,7 +40,7 @@ static int clk_gate2_enable(struct clk_hw *hw)
 {
        struct clk_gate2 *gate = to_clk_gate2(hw);
        u32 reg;
-       unsigned long flags = 0;
+       unsigned long flags;
 
        spin_lock_irqsave(gate->lock, flags);
 
@@ -62,7 +62,7 @@ static void clk_gate2_disable(struct clk_hw *hw)
 {
        struct clk_gate2 *gate = to_clk_gate2(hw);
        u32 reg;
-       unsigned long flags = 0;
+       unsigned long flags;
 
        spin_lock_irqsave(gate->lock, flags);
 
@@ -101,7 +101,7 @@ static int clk_gate2_is_enabled(struct clk_hw *hw)
 static void clk_gate2_disable_unused(struct clk_hw *hw)
 {
        struct clk_gate2 *gate = to_clk_gate2(hw);
-       unsigned long flags = 0;
+       unsigned long flags;
        u32 reg;
 
        spin_lock_irqsave(gate->lock, flags);