diff options
Diffstat (limited to 'drivers/leds/led-class.c')
-rw-r--r-- | drivers/leds/led-class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index f2cc13d76810..782f95822eab 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c | |||
@@ -50,7 +50,7 @@ static ssize_t led_brightness_store(struct device *dev, | |||
50 | unsigned long state = simple_strtoul(buf, &after, 10); | 50 | unsigned long state = simple_strtoul(buf, &after, 10); |
51 | size_t count = after - buf; | 51 | size_t count = after - buf; |
52 | 52 | ||
53 | if (*after && isspace(*after)) | 53 | if (isspace(*after)) |
54 | count++; | 54 | count++; |
55 | 55 | ||
56 | if (count == size) { | 56 | if (count == size) { |