]> Pileus Git - ~andy/linux/blobdiff - drivers/leds/ledtrig-timer.c
leds: LED driver for Intel NAS SS4200 series (v5)
[~andy/linux] / drivers / leds / ledtrig-timer.c
index 3b83406de7520b8052b73906992f2fa34e1b3891..38b3378be442b3d6501b8ffb9aa67e8eaba21ef4 100644 (file)
@@ -83,7 +83,7 @@ static ssize_t led_delay_on_store(struct device *dev,
        unsigned long state = simple_strtoul(buf, &after, 10);
        size_t count = after - buf;
 
-       if (*after && isspace(*after))
+       if (isspace(*after))
                count++;
 
        if (count == size) {
@@ -127,7 +127,7 @@ static ssize_t led_delay_off_store(struct device *dev,
        unsigned long state = simple_strtoul(buf, &after, 10);
        size_t count = after - buf;
 
-       if (*after && isspace(*after))
+       if (isspace(*after))
                count++;
 
        if (count == size) {