summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2015-11-18 16:32:37 +0100
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-01-04 09:57:37 +0100
commitabc196359bf91a53392d8fac272a4ea8a9ecc0c4 (patch)
treee9bbeca0c17be3e32391aa72d242d1ffdf6e3d93 /drivers/leds
parentleds: ktd2692: Add missing of_node_put (diff)
downloadlinux-abc196359bf91a53392d8fac272a4ea8a9ecc0c4.tar.xz
linux-abc196359bf91a53392d8fac272a4ea8a9ecc0c4.zip
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/led-class-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class-flash.c b/drivers/leds/led-class-flash.c
index f53783b8d5e8..cf398275a53c 100644
--- a/drivers/leds/led-class-flash.c
+++ b/drivers/leds/led-class-flash.c
@@ -108,7 +108,7 @@ static ssize_t flash_strobe_store(struct device *dev,
if (ret)
goto unlock;
- if (state < 0 || state > 1) {
+ if (state > 1) {
ret = -EINVAL;
goto unlock;
}