Skip to content

Commit

Permalink
leds: [trivial]Remove unnecesary return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Bryan Wu committed Jul 23, 2012
1 parent 20c0e6b commit 1522d02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/leds/leds-s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 1522d02

Please sign in to comment.