OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75d3bce
)
x86: fix integer as NULL pointer warning
author
Harvey Harrison
<harvey.harrison@gmail.com>
Thu, 22 May 2008 22:45:06 +0000
(15:45 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 23 May 2008 15:11:06 +0000
(08:11 -0700)
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>
arch/x86/boot/printf.c
patch
|
blob
|
history
diff --git
a/arch/x86/boot/printf.c
b/arch/x86/boot/printf.c
index
c1d00c0
..
50e47cd
100644
(file)
--- 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) {