lkml.org 
[lkml]   [2015]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] leds: leds-ot200: Use devm_led_classdev_register
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 <falakreyaz@gmail.com>
> ---
> drivers/leds/leds-ot200.c | 21 ++-------------------
> 1 file changed, 2 insertions(+), 19 deletions(-)

Merged, thanks.

--
Best Regards,
Jacek Anaszewski


\
 
 \ /
  Last update: 2015-09-07 10:21    [W:0.062 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site