Skip to content

Commit

Permalink
leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c
Browse files Browse the repository at this point in the history
This goto is unnecessary.

Signed-off-by: Zhenwen Xu <helight.xu@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Zhenwen Xu authored and Richard Purdie committed Apr 6, 2009
1 parent 0b56129 commit bfb2cc4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/leds/leds-s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,11 @@ static int s3c24xx_led_probe(struct platform_device *dev)
ret = led_classdev_register(&dev->dev, &led->cdev);
if (ret < 0) {
dev_err(&dev->dev, "led_classdev_register failed\n");
goto exit_err1;
kfree(led);
return ret;
}

return 0;

exit_err1:
kfree(led);
return ret;
}

static struct platform_driver s3c24xx_led_driver = {
Expand Down

0 comments on commit bfb2cc4

Please sign in to comment.