From: Harvey Harrison Date: Thu, 22 May 2008 22:45:06 +0000 (-0700) Subject: x86: fix integer as NULL pointer warning X-Git-Tag: v2.6.26-rc4~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fafd91d85181e946207bed18c44addc47e36c63;p=linux-2.6 x86: fix integer as NULL pointer warning arch/x86/boot/printf.c:59:10: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/boot/printf.c b/arch/x86/boot/printf.c index c1d00c0274..50e47cdbdd 100644 --- a/arch/x86/boot/printf.c +++ b/arch/x86/boot/printf.c @@ -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) {