lkml.org 
[lkml]   [2013]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/6] extcon-gpio: Do not unnecessarily initialize variables
On 08/30/2013 01:29 PM, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/extcon/extcon-gpio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c
> index 02bec32..77d35a7 100644
> --- a/drivers/extcon/extcon-gpio.c
> +++ b/drivers/extcon/extcon-gpio.c
> @@ -80,7 +80,7 @@ static int gpio_extcon_probe(struct platform_device *pdev)
> {
> struct gpio_extcon_platform_data *pdata = pdev->dev.platform_data;
> struct gpio_extcon_data *extcon_data;
> - int ret = 0;
> + int ret;
>
> if (!pdata)
> return -EBUSY;
>

Applied it on extcon-linus branch.

Thanks.
Chanwoo Choi


\
 
 \ /
  Last update: 2013-09-11 03:41    [W:0.184 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site