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

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 <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Zou Wei and committed by
Shawn Guo
f2bd43f1 65188f07

+1 -2
+1 -2
drivers/clk/imx/clk-gate2.c
··· 54 54 { 55 55 struct clk_gate2 *gate = to_clk_gate2(hw); 56 56 unsigned long flags; 57 - int ret = 0; 58 57 59 58 spin_lock_irqsave(gate->lock, flags); 60 59 ··· 64 65 out: 65 66 spin_unlock_irqrestore(gate->lock, flags); 66 67 67 - return ret; 68 + return 0; 68 69 } 69 70 70 71 static void clk_gate2_disable(struct clk_hw *hw)