Commit 28717368 authored by Peng Fan's avatar Peng Fan Committed by Shawn Guo

clk: imx: clk-divider-gate: drop redundant initialization

There is no need to initialize flags as 0.
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a546d88c
...@@ -43,7 +43,7 @@ static unsigned long clk_divider_gate_recalc_rate(struct clk_hw *hw, ...@@ -43,7 +43,7 @@ static unsigned long clk_divider_gate_recalc_rate(struct clk_hw *hw,
{ {
struct clk_divider_gate *div_gate = to_clk_divider_gate(hw); struct clk_divider_gate *div_gate = to_clk_divider_gate(hw);
struct clk_divider *div = to_clk_divider(hw); struct clk_divider *div = to_clk_divider(hw);
unsigned long flags = 0; unsigned long flags;
unsigned int val; unsigned int val;
spin_lock_irqsave(div->lock, flags); spin_lock_irqsave(div->lock, flags);
...@@ -75,7 +75,7 @@ static int clk_divider_gate_set_rate(struct clk_hw *hw, unsigned long rate, ...@@ -75,7 +75,7 @@ static int clk_divider_gate_set_rate(struct clk_hw *hw, unsigned long rate,
{ {
struct clk_divider_gate *div_gate = to_clk_divider_gate(hw); struct clk_divider_gate *div_gate = to_clk_divider_gate(hw);
struct clk_divider *div = to_clk_divider(hw); struct clk_divider *div = to_clk_divider(hw);
unsigned long flags = 0; unsigned long flags;
int value; int value;
u32 val; u32 val;
...@@ -104,7 +104,7 @@ static int clk_divider_enable(struct clk_hw *hw) ...@@ -104,7 +104,7 @@ static int clk_divider_enable(struct clk_hw *hw)
{ {
struct clk_divider_gate *div_gate = to_clk_divider_gate(hw); struct clk_divider_gate *div_gate = to_clk_divider_gate(hw);
struct clk_divider *div = to_clk_divider(hw); struct clk_divider *div = to_clk_divider(hw);
unsigned long flags = 0; unsigned long flags;
u32 val; u32 val;
if (!div_gate->cached_val) { if (!div_gate->cached_val) {
...@@ -127,7 +127,7 @@ static void clk_divider_disable(struct clk_hw *hw) ...@@ -127,7 +127,7 @@ static void clk_divider_disable(struct clk_hw *hw)
{ {
struct clk_divider_gate *div_gate = to_clk_divider_gate(hw); struct clk_divider_gate *div_gate = to_clk_divider_gate(hw);
struct clk_divider *div = to_clk_divider(hw); struct clk_divider *div = to_clk_divider(hw);
unsigned long flags = 0; unsigned long flags;
u32 val; u32 val;
spin_lock_irqsave(div->lock, flags); spin_lock_irqsave(div->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment