From: Devendra Naga Date: Tue, 19 Jun 2012 18:22:39 +0000 (+0800) Subject: leds: [trivial]Remove unnecesary return X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1522d02e275332080ec27e268edc29c79c6f5e0c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git leds: [trivial]Remove unnecesary return the ret is got the status returned by the led_classdev_register, returning ret if the led_classdev_register fails and returning 0 if the led_classdev_register success, can be done by doing just "return ret" at the end. Signed-off-by: Devendra Naga Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c index bd0a5ed49c42..e6ee10548265 100644 --- a/drivers/leds/leds-s3c24xx.c +++ b/drivers/leds/leds-s3c24xx.c @@ -106,10 +106,9 @@ static int s3c24xx_led_probe(struct platform_device *dev) if (ret < 0) { dev_err(&dev->dev, "led_classdev_register failed\n"); kfree(led); - return ret; } - return 0; + return ret; } static struct platform_driver s3c24xx_led_driver = {