On 09/05/2015 04:23 PM, Muhammad Falak R Wani wrote:
Use resource-managed function devm_led_classdev_register
instead of led_classdev_register to make the error path simpler.
The goto is replaced with direct return, unneeded label err is
dropped. Also, remove redundant ot200_led_remove.

Signed-off-by: Muhammad Falak R Wani <[email protected]>
---
  drivers/leds/leds-ot200.c | 21 ++-------------------
  1 file changed, 2 insertions(+), 19 deletions(-)

Merged, thanks.

--
Best Regards,
Jacek Anaszewski
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to