tree-wide: convert open calls to remove spaces to skip_spaces() lib function
[safe/jmp/linux-2.6] / drivers / video / display / display-sysfs.c
index 4830b1b..80abbf3 100644 (file)
@@ -67,7 +67,7 @@ static ssize_t display_store_contrast(struct device *dev,
        contrast = simple_strtoul(buf, &endp, 0);
        size = endp - buf;
 
-       if (*endp && isspace(*endp))
+       if (isspace(*endp))
                size++;
 
        if (size != count)