Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fbfa197a authored by Jacek Anaszewski's avatar Jacek Anaszewski Committed by Jacek Anaszewski
Browse files

leds: triggers: Return from led_trigger_set() if there is nothing to do



If led_trigger_set() is called with "trig" argument set to NULL, and there
is no trigger to remove then the function should return immediately so
as to avoid doing unnecessary allocation and sending uevent.

Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: default avatarDaniel Romell <daro@hms.se>
Acked-by Daniel Romell <daro@hms.se>
parent 74b69e52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment