The patch titled leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c has been added to the -mm tree. Its filename is leds-remove-an-unnecessary-goto-on-drivers-leds-leds-s3c24c.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c From: Zhenwen Xu <helight.xu@xxxxxxxxx> This goto is unnecessary. Signed-off-by: Zhenwen Xu <helight.xu@xxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Cc: Russell King <rmk@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/leds/leds-s3c24xx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff -puN drivers/leds/leds-s3c24xx.c~leds-remove-an-unnecessary-goto-on-drivers-leds-leds-s3c24c drivers/leds/leds-s3c24xx.c --- a/drivers/leds/leds-s3c24xx.c~leds-remove-an-unnecessary-goto-on-drivers-leds-leds-s3c24c +++ a/drivers/leds/leds-s3c24xx.c @@ -102,14 +102,11 @@ static int s3c24xx_led_probe(struct plat 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 = { _ Patches currently in -mm which might be from helight.xu@xxxxxxxxx are leds-remove-an-unnecessary-goto-on-drivers-leds-leds-s3c24c.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html