Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: flash: Remove checking for state < 1 in flash_strobe_store()

Strobe state variable is declared as unsigned long, remove
the check for values less than zero then.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: David Binderman <dcb314@hotmail.com>

+1 -1
+1 -1
drivers/leds/led-class-flash.c
··· 108 108 if (ret) 109 109 goto unlock; 110 110 111 - if (state < 0 || state > 1) { 111 + if (state > 1) { 112 112 ret = -EINVAL; 113 113 goto unlock; 114 114 }