Merge v2.6.37-rc8 into powerpc/next
[pandora-kernel.git] / Documentation / filesystems / configfs / configfs_example_explicit.c
index d428cc9..fd53869 100644 (file)
@@ -89,7 +89,7 @@ static ssize_t childless_storeme_write(struct childless *childless,
        char *p = (char *) page;
 
        tmp = simple_strtoul(p, &p, 10);
-       if (!p || (*p && (*p != '\n')))
+       if ((*p != '\0') && (*p != '\n'))
                return -EINVAL;
 
        if (tmp > INT_MAX)