projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: flash: Remove checking for state < 1 in flash_strobe_store()
[linux-2.6-microblaze.git]
/
drivers
/
leds
/
led-class-flash.c
diff --git
a/drivers/leds/led-class-flash.c
b/drivers/leds/led-class-flash.c
index
f53783b
..
cf39827
100644
(file)
--- a/
drivers/leds/led-class-flash.c
+++ b/
drivers/leds/led-class-flash.c
@@
-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;
}