CC: kbuild-all(a)lists.01.org CC: Linux Memory Management List TO: Abel Vesa CC: Shawn Guo CC: Sascha Hauer CC: Michael Turquette CC: Stephen Boyd CC: Pengutronix Kernel Team CC: Fabio Estevam CC: NXP Linux Team CC: Anson Huang CC: "Jonathan Neuschäfer" From: kernel test robot drivers/clk/imx/clk-gate2.c:45:5-8: Unneeded variable: "ret". Return "0" on line 60 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 12309428c277 ("clk: imx: gate2: Remove the IMX_CLK_GATE2_SINGLE_BIT special case") CC: Abel Vesa Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: c50585161e791d5ddb924da98741fdf413a0480a commit: 12309428c27737c21735fb28540c6c6f69f632f6 [2873/3099] clk: imx: gate2: Remove the IMX_CLK_GATE2_SINGLE_BIT special case :::::: branch date: 9 hours ago :::::: commit date: 16 hours ago Please take the patch only if it's a positive warning. Thanks! clk-gate2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -42,7 +42,6 @@ static int clk_gate2_enable(struct clk_h struct clk_gate2 *gate = to_clk_gate2(hw); u32 reg; unsigned long flags; - int ret = 0; spin_lock_irqsave(gate->lock, flags); @@ -57,7 +56,7 @@ static int clk_gate2_enable(struct clk_h out: spin_unlock_irqrestore(gate->lock, flags); - return ret; + return 0; } static void clk_gate2_disable(struct clk_hw *hw)