Commit abc19635 authored by Jacek Anaszewski's avatar Jacek Anaszewski

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: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
parent 77e7915b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment