Commit 1522d02e authored by Devendra Naga's avatar Devendra Naga Committed by Bryan Wu

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent 20c0e6b8
...@@ -106,10 +106,9 @@ static int s3c24xx_led_probe(struct platform_device *dev) ...@@ -106,10 +106,9 @@ static int s3c24xx_led_probe(struct platform_device *dev)
if (ret < 0) { if (ret < 0) {
dev_err(&dev->dev, "led_classdev_register failed\n"); dev_err(&dev->dev, "led_classdev_register failed\n");
kfree(led); kfree(led);
return ret;
} }
return 0; return ret;
} }
static struct platform_driver s3c24xx_led_driver = { static struct platform_driver s3c24xx_led_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment