[PATCH v2 7/7] leds: gpio: fix and simplify error handling in gpio_leds_create

2016-09-14 Thread Heiner Kallweit
Simplify the error handling and add a missing call to fwnode_handle_put when checking led.name. Signed-off-by: Heiner Kallweit --- v2: - rebased due to removal of patch 2 of the original series --- drivers/leds/leds-gpio.c | 12 1 file changed, 4

[PATCH v2 7/7] leds: gpio: fix and simplify error handling in gpio_leds_create

2016-09-14 Thread Heiner Kallweit
Simplify the error handling and add a missing call to fwnode_handle_put when checking led.name. Signed-off-by: Heiner Kallweit --- v2: - rebased due to removal of patch 2 of the original series --- drivers/leds/leds-gpio.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff