提交 abc19635 编写于 作者: J 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: NJacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: NDavid Binderman <dcb314@hotmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册