Commit a260fba1 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Lee Jones

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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a48baac5
...@@ -69,8 +69,6 @@ EXPORT_SYMBOL_GPL(arizona_clk32k_enable); ...@@ -69,8 +69,6 @@ EXPORT_SYMBOL_GPL(arizona_clk32k_enable);
int arizona_clk32k_disable(struct arizona *arizona) int arizona_clk32k_disable(struct arizona *arizona)
{ {
int ret = 0;
mutex_lock(&arizona->clk_lock); mutex_lock(&arizona->clk_lock);
BUG_ON(arizona->clk32k_ref <= 0); BUG_ON(arizona->clk32k_ref <= 0);
...@@ -90,7 +88,7 @@ int arizona_clk32k_disable(struct arizona *arizona) ...@@ -90,7 +88,7 @@ int arizona_clk32k_disable(struct arizona *arizona)
mutex_unlock(&arizona->clk_lock); mutex_unlock(&arizona->clk_lock);
return ret; return 0;
} }
EXPORT_SYMBOL_GPL(arizona_clk32k_disable); EXPORT_SYMBOL_GPL(arizona_clk32k_disable);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment