Merge branch 'omap-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind...
[cascardo/linux.git] / lib / vsprintf.c
index fd987b1..6021757 100644 (file)
@@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res)     \
        int ret;                                                        \
        if (*cp == '-') {                                               \
                ret = strict_strtou##type(cp+1, base, res);             \
-               if (ret != 0)                                           \
+               if (!ret)                                               \
                        *res = -(*res);                                 \
        } else                                                          \
                ret = strict_strtou##type(cp, base, res);               \