Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
7fafd91d 75d3bce2

+1 -1
+1 -1
arch/x86/boot/printf.c
··· 56 56 if (type & LEFT) 57 57 type &= ~ZEROPAD; 58 58 if (base < 2 || base > 36) 59 - return 0; 59 + return NULL; 60 60 c = (type & ZEROPAD) ? '0' : ' '; 61 61 sign = 0; 62 62 if (type & SIGN) {