projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b56129
)
leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c
author
Zhenwen Xu
<helight.xu@gmail.com>
Fri, 3 Apr 2009 14:35:52 +0000
(15:35 +0100)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Mon, 6 Apr 2009 15:06:26 +0000
(16:06 +0100)
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>
drivers/leds/leds-s3c24xx.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-s3c24xx.c
b/drivers/leds/leds-s3c24xx.c
index
4d81131
..
aa2e7ae
100644
(file)
--- 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 = {