浏览代码

x86: boot/printfc use NULL instead 0

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Thomas Gleixner 17 年之前
父节点
当前提交
535694f361
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/boot/printf.c

+ 1 - 1
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) {