Skip to content

Commit

Permalink
mfd: arizona: Remove unneded ret variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Lee Jones committed Oct 30, 2015
1 parent a48baac commit a260fba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mfd/arizona-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ EXPORT_SYMBOL_GPL(arizona_clk32k_enable);

int arizona_clk32k_disable(struct arizona *arizona)
{
int ret = 0;

mutex_lock(&arizona->clk_lock);

BUG_ON(arizona->clk32k_ref <= 0);
Expand All @@ -90,7 +88,7 @@ int arizona_clk32k_disable(struct arizona *arizona)

mutex_unlock(&arizona->clk_lock);

return ret;
return 0;
}
EXPORT_SYMBOL_GPL(arizona_clk32k_disable);

Expand Down

0 comments on commit a260fba

Please sign in to comment.