leds: flash: Remove checking for state < 1 in flash_strobe_store()
[linux-2.6-microblaze.git] / drivers / leds / led-class-flash.c
index f53783b..cf39827 100644 (file)
@@ -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;
        }