aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-06-19 14:22:39 -0400
committerBryan Wu <bryan.wu@canonical.com>2012-07-23 19:52:35 -0400
commit1522d02e275332080ec27e268edc29c79c6f5e0c (patch)
treea7318cc83fe884e6cea025f7610482757c7ce7d9 /drivers/leds
parent20c0e6b8787c5289202f688b6be78dff4568c1df (diff)
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 <devendra.aaru@gmail.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-s3c24xx.c3
1 files changed, 1 insertions, 2 deletions
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)
106 if (ret < 0) { 106 if (ret < 0) {
107 dev_err(&dev->dev, "led_classdev_register failed\n"); 107 dev_err(&dev->dev, "led_classdev_register failed\n");
108 kfree(led); 108 kfree(led);
109 return ret;
110 } 109 }
111 110
112 return 0; 111 return ret;
113} 112}
114 113
115static struct platform_driver s3c24xx_led_driver = { 114static struct platform_driver s3c24xx_led_driver = {