aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/imx/clk-gate2.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-12 17:03:00 +0800
committerShawn Guo <shawnguo@kernel.org>2020-02-17 14:32:32 +0800
commit79ccef698ac811b3029fd01cbe2114fed3219c8a (patch)
treeb9f08f83ae869bc8ca3c630a202076e41dcbeb9d /drivers/clk/imx/clk-gate2.c
parentclk: imx: Include clk-provider.h instead of clk.h for i.MX8M SoCs clock driver (diff)
downloadwireguard-linux-79ccef698ac811b3029fd01cbe2114fed3219c8a.tar.xz
wireguard-linux-79ccef698ac811b3029fd01cbe2114fed3219c8a.zip
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>
Diffstat (limited to 'drivers/clk/imx/clk-gate2.c')
-rw-r--r--drivers/clk/imx/clk-gate2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c
index 7d44ce814806..72a7698be791 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -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);