From: Guenter Roeck Date: Fri, 30 Aug 2013 04:29:33 +0000 (-0700) Subject: extcon: gpio: Do not unnecessarily initialize variables X-Git-Tag: firefly_0821_release~176^2~5060^2~46^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1073514b11c221081c7c1f4a14b3eee5365385fa;p=firefly-linux-kernel-4.4.55.git extcon: gpio: Do not unnecessarily initialize variables Signed-off-by: Guenter Roeck Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c index f874c30ddbff..6368a0f3ae6d 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;