leds: gpio: fix and simplify error handling in gpio_leds_create
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Sep 2016 18:55:43 +0000 (20:55 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 15 Sep 2016 14:49:43 +0000 (16:49 +0200)
commit74b69e5246d13840963b7b23e21dbab541cb26d2
tree1b1d3c6db1a207331486d1e8bc4452ffcfa9bf24
parentbc2c0dd85a0a31505ca2f92bef891ddac9126725
leds: gpio: fix and simplify error handling in gpio_leds_create

Simplify the error handling and add a missing call to fwnode_handle_put
when checking led.name.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-gpio.c