[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151001071815.GC3214@x1>
Date: Thu, 1 Oct 2015 08:18:15 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Javier Martinez Canillas <javier@....samsung.com>
Cc: linux-kernel@...r.kernel.org, patches@...nsource.wolfsonmicro.com,
Samuel Ortiz <sameo@...ux.intel.com>
Subject: Re: [PATCH 2/8] mfd: arizona: Remove unneded ret variable
On Tue, 29 Sep 2015, Javier Martinez Canillas wrote:
> 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@....samsung.com>
> ---
>
> drivers/mfd/arizona-core.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
> diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
> index 44cfdbb295db..acf354875338 100644
> --- a/drivers/mfd/arizona-core.c
> +++ b/drivers/mfd/arizona-core.c
> @@ -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);
> @@ -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);
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists