clk: imx: gate2: Remove unused variable ret
Subsystems (3)
PATCH 1/1 clk: imx: gate2: Remove unused variable ret
This patch fixes below warning reported by coccicheck:
./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/clk/imx/clk-gate2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/clk/imx/clk-gate2.c +1 -2
@@ -54,7 +54,6 @@ static int clk_gate2_enable(struct clk_hw *hw) {struct clk_gate2 *gate =to_clk_gate2 (hw);unsigned long flags; -int ret =0 ;spin_lock_irqsave (gate->lock, flags);
@@ -65,7 +64,7 @@ static int clk_gate2_enable(struct clk_hw *hw) out:spin_unlock_irqrestore (gate->lock, flags); -return ret; +return 0 ; }static void clk_gate2_disable (struct clk_hw *hw)
Signature · 1 line
2.6.2
Quoting Zou Wei (2020-11-03 03:32:14)
Quoted 7 lines
This patch fixes below warning reported by coccicheck:
./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68
Reported-by Hulk Robot <[email protected]>Signed-off-by Zou Wei <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
Shawn Guo
AppliedQuoted 6 lines · Zou Wei
This patch fixes below warning reported by coccicheck:
./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68
Reported-by Hulk Robot <[email protected]>Signed-off-by Zou Wei <[email protected]>
Applied, thanks.