summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-divider-gate.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-11-04 11:11:37 +0100
committerShawn Guo <shawnguo@kernel.org>2019-12-09 01:26:51 +0100
commit2871736869f031a02deb67ae24794e149ee16a4a (patch)
tree1b13a6aba191072915e224461997700b59527824 /drivers/clk/imx/clk-divider-gate.c
parentclk: imx: clk-divider-gate: fix a typo in comment (diff)
downloadlinux-2871736869f031a02deb67ae24794e149ee16a4a.tar.xz
linux-2871736869f031a02deb67ae24794e149ee16a4a.zip
clk: imx: clk-divider-gate: drop redundant initialization
There is no need to initialize flags as 0. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-divider-gate.c')
-rw-r--r--drivers/clk/imx/clk-divider-gate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/imx/clk-divider-gate.c b/drivers/clk/imx/clk-divider-gate.c
index 214e18eb2b22..4145594af53b 100644
--- a/drivers/clk/imx/clk-divider-gate.c
+++ b/drivers/clk/imx/clk-divider-gate.c
@@ -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 *div = to_clk_divider(hw);
- unsigned long flags = 0;
+ unsigned long flags;
unsigned int val;
spin_lock_irqsave(div->lock, flags);
@@ -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 *div = to_clk_divider(hw);
- unsigned long flags = 0;
+ unsigned long flags;
int value;
u32 val;
@@ -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 *div = to_clk_divider(hw);
- unsigned long flags = 0;
+ unsigned long flags;
u32 val;
if (!div_gate->cached_val) {
@@ -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 *div = to_clk_divider(hw);
- unsigned long flags = 0;
+ unsigned long flags;
u32 val;
spin_lock_irqsave(div->lock, flags);