mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
leds: [trivial]Remove unnecesary return
the ret is got the status returned by the led_classdev_register, returning ret if the led_classdev_register fails and returning 0 if the led_classdev_register success, can be done by doing just "return ret" at the end. Signed-off-by: Devendra Naga <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
20c0e6b878
commit
1522d02e27
1 changed files with 1 additions and 2 deletions
|
|
@ -106,10 +106,9 @@ static int s3c24xx_led_probe(struct platform_device *dev)
|
|||
if (ret < 0) {
|
||||
dev_err(&dev->dev, "led_classdev_register failed\n");
|
||||
kfree(led);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct platform_driver s3c24xx_led_driver = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue