public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - [1/15] - remove defconfig ptr comparisons to 0 - arch/x86
@ 2007-11-14  2:04 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2007-11-14  2:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, H. Peter Anvin

Remove defconfig ptr comparison to 0

Remove sparse warning: Using plain integer as NULL pointer

Signed-off-by: Joe Perches <joe@perches.com>

---

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-14  2:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14  2:04 [PATCH] - [1/15] - remove defconfig ptr comparisons to 0 - arch/x86 Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox