Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abc19635 authored by Jacek Anaszewski's avatar Jacek Anaszewski
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}