x86: fix integer as NULL pointer warning
authorHarvey Harrison <[email protected]>
Thu, 22 May 2008 22:45:06 +0000 (15:45 -0700)
committerLinus Torvalds <[email protected]>
Fri, 23 May 2008 15:11:06 +0000 (08:11 -0700)
arch/x86/boot/printf.c:59:10: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/boot/printf.c

index c1d00c0274c4888c203ac186b4f3930791669be4..50e47cdbdddd4234f78ab88028407c0aeccd8497 100644 (file)
@@ -56,7 +56,7 @@ static char *number(char *str, long num, int base, int size, int precision,
        if (type & LEFT)
                type &= ~ZEROPAD;
        if (base < 2 || base > 36)
-               return 0;
+               return NULL;
        c = (type & ZEROPAD) ? '0' : ' ';
        sign = 0;
        if (type & SIGN) {