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

mfd: arizona: Remove unneded ret variable

The ret variable is not needed since is not used in the
function. Remove the variable and just return 0 instead.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Javier Martinez Canillas and committed by
Lee Jones
a260fba1 a48baac5

+1 -3
+1 -3
drivers/mfd/arizona-core.c
··· 69 69 70 70 int arizona_clk32k_disable(struct arizona *arizona) 71 71 { 72 - int ret = 0; 73 - 74 72 mutex_lock(&arizona->clk_lock); 75 73 76 74 BUG_ON(arizona->clk32k_ref <= 0); ··· 88 90 89 91 mutex_unlock(&arizona->clk_lock); 90 92 91 - return ret; 93 + return 0; 92 94 } 93 95 EXPORT_SYMBOL_GPL(arizona_clk32k_disable); 94 96