提交 bfb2cc48 编写于 作者: Z Zhenwen Xu 提交者: Richard Purdie

leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c

This goto is unnecessary.
Signed-off-by: NZhenwen Xu <helight.xu@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 0b56129b
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册