]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/vsprintf.c
[ARM] 4978/1: [AT91] KB9260 (CAM60) board support
[linux-2.6-omap-h63xx.git] / lib / vsprintf.c
index fd987b17bda754b424cb0e9cd9d055056bd1c6f3..6021757a449663074cded737138d31acd83da325 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);               \