Browse Source

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>
Jacek Anaszewski 9 years ago
parent
commit
abc196359b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/leds/led-class-flash.c

+ 1 - 1
drivers/leds/led-class-flash.c

@@ -108,7 +108,7 @@ static ssize_t flash_strobe_store(struct device *dev,
 	if (ret)
 	if (ret)
 		goto unlock;
 		goto unlock;
 
 
-	if (state < 0 || state > 1) {
+	if (state > 1) {
 		ret = -EINVAL;
 		ret = -EINVAL;
 		goto unlock;
 		goto unlock;
 	}
 	}