mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
77e7915b15
commit
abc196359b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user