diff options
author | Zhenwen Xu <helight.xu@gmail.com> | 2009-04-03 15:35:52 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-04-06 16:06:26 +0100 |
commit | bfb2cc48f077017f6224e725886d07d76e3f96db (patch) | |
tree | 8cd6264c8d53a2a87018edf33eb0dcf75f5cc55b /drivers/leds | |
parent | 0b56129be72c38179697b7441aacbe133d515ff9 (diff) | |
download | op-kernel-dev-bfb2cc48f077017f6224e725886d07d76e3f96db.zip op-kernel-dev-bfb2cc48f077017f6224e725886d07d76e3f96db.tar.gz |
leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-s3c24xx.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c index 4d81131..aa2e7ae 100644 --- a/drivers/leds/leds-s3c24xx.c +++ b/drivers/leds/leds-s3c24xx.c @@ -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 = { |