Skip to contentSkip to conversation

- [1/15] - remove defconfig ptr comparisons to 0 - arch/x86

PATCH New Joe Perches 1 participant 1 message Nov 14, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - [1/15] - remove defconfig ptr comparisons to 0 - arch/x86

Remove defconfig ptr comparison to 0

Remove sparse warning: Using plain integer as NULL pointer

---

arch/x86/boot/printf.c +1 -1
index 1a09f93..953224e 100644
@@ -54,7 +54,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) {