leds: trigger: netdev: Remove not needed call to led_set_brightness in deactivate
PATCH 1/1 leds: trigger: netdev: Remove not needed call to led_set_brightness in deactivate
led_trigger_set() is the only caller of the deactivate() callback, and it calls led_set_brightness(LED_OFF) anyway after deactivate(). So we can remove the call here.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/leds/trigger/ledtrig-netdev.c | 2 -- 1 file changed, 2 deletions(-)
drivers/leds/trigger/ledtrig-netdev.c +0 -2
@@ -724,8 +724,6 @@ static void netdev_trig_deactivate(struct led_classdev *led_cdev)cancel_delayed_work_sync (&trigger_data->work); -led_set_brightness (led_cdev,LED_OFF ); -dev_put (trigger_data->net_dev);kfree (trigger_data);
Signature · 1 line
2.44.0
Re: (subset) [PATCH] leds: trigger: netdev: Remove not needed call to led_set_brightness in deactivate
Quoted 5 lines · Heiner Kallweit
led_trigger_set()is the only caller of thedeactivate()callback, and it callsled_set_brightness(LED_OFF)anyway afterdeactivate(). So we can remove the call here.
Applied, thanks!
[1/1] leds: trigger: netdev: Remove not needed call to led_set_brightness in deactivate
commit: b487c4e76657241197e056d06b4b73eab714f0e3
--
Lee Jones [李琼斯]