X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=lib%2Fvsprintf.c;h=6021757a449663074cded737138d31acd83da325;hb=f2ea3b1d4d7ab66d86da57899993282f3deb1f74;hp=fd987b17bda754b424cb0e9cd9d055056bd1c6f3;hpb=0c0d61ca93d111c521182c0909e478fa709e05c6;p=linux-2.6-omap-h63xx.git diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fd987b17bda..6021757a449 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -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); \