Commit 1fe4f1bf authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Lee Jones

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/8dc929e7-8e14-4c85-aa28-9c5fe2620f52@gmail.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 77b9f2d6
...@@ -724,8 +724,6 @@ static void netdev_trig_deactivate(struct led_classdev *led_cdev) ...@@ -724,8 +724,6 @@ static void netdev_trig_deactivate(struct led_classdev *led_cdev)
cancel_delayed_work_sync(&trigger_data->work); cancel_delayed_work_sync(&trigger_data->work);
led_set_brightness(led_cdev, LED_OFF);
dev_put(trigger_data->net_dev); dev_put(trigger_data->net_dev);
kfree(trigger_data); kfree(trigger_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment