Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: imx: drop redundant initialization

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>

authored by

Anson Huang and committed by
Shawn Guo
79ccef69 f95d5898

+6 -6
+1 -1
drivers/clk/imx/clk-composite-8m.c
··· 92 92 unsigned long parent_rate) 93 93 { 94 94 struct clk_divider *divider = to_clk_divider(hw); 95 - unsigned long flags = 0; 95 + unsigned long flags; 96 96 int prediv_value; 97 97 int div_value; 98 98 int ret;
+1 -1
drivers/clk/imx/clk-fixup-div.c
··· 55 55 struct clk_fixup_div *fixup_div = to_clk_fixup_div(hw); 56 56 struct clk_divider *div = to_clk_divider(hw); 57 57 unsigned int divider, value; 58 - unsigned long flags = 0; 58 + unsigned long flags; 59 59 u32 val; 60 60 61 61 divider = parent_rate / rate;
+1 -1
drivers/clk/imx/clk-fixup-mux.c
··· 42 42 { 43 43 struct clk_fixup_mux *fixup_mux = to_clk_fixup_mux(hw); 44 44 struct clk_mux *mux = to_clk_mux(hw); 45 - unsigned long flags = 0; 45 + unsigned long flags; 46 46 u32 val; 47 47 48 48 spin_lock_irqsave(mux->lock, flags);
+3 -3
drivers/clk/imx/clk-gate2.c
··· 40 40 { 41 41 struct clk_gate2 *gate = to_clk_gate2(hw); 42 42 u32 reg; 43 - unsigned long flags = 0; 43 + unsigned long flags; 44 44 45 45 spin_lock_irqsave(gate->lock, flags); 46 46 ··· 62 62 { 63 63 struct clk_gate2 *gate = to_clk_gate2(hw); 64 64 u32 reg; 65 - unsigned long flags = 0; 65 + unsigned long flags; 66 66 67 67 spin_lock_irqsave(gate->lock, flags); 68 68 ··· 101 101 static void clk_gate2_disable_unused(struct clk_hw *hw) 102 102 { 103 103 struct clk_gate2 *gate = to_clk_gate2(hw); 104 - unsigned long flags = 0; 104 + unsigned long flags; 105 105 u32 reg; 106 106 107 107 spin_lock_irqsave(gate->lock, flags);