mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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>
This commit is contained in:
parent
0b56129be7
commit
bfb2cc48f0
@ -102,14 +102,11 @@ static int s3c24xx_led_probe(struct platform_device *dev)
|
|||||||
ret = led_classdev_register(&dev->dev, &led->cdev);
|
ret = led_classdev_register(&dev->dev, &led->cdev);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(&dev->dev, "led_classdev_register failed\n");
|
dev_err(&dev->dev, "led_classdev_register failed\n");
|
||||||
goto exit_err1;
|
kfree(led);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
exit_err1:
|
|
||||||
kfree(led);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver s3c24xx_led_driver = {
|
static struct platform_driver s3c24xx_led_driver = {
|
||||||
|
Loading…
Reference in New Issue
Block a user