projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6fcdf
)
x86: numa_32.c: fix sparse warning: Using plain integer as NULL pointer
author
Hannes Eder
<hannes@hanneseder.net>
Sun, 22 Feb 2009 00:01:13 +0000
(
01:01
+0100)
committer
Ingo Molnar
<mingo@elte.hu>
Sun, 22 Feb 2009 08:27:12 +0000
(09:27 +0100)
Fix this sparse warning:
arch/x86/mm/numa_32.c:197:24: warning: Using plain integer as NULL pointer
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Cc: trivial@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/numa_32.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/numa_32.c
b/arch/x86/mm/numa_32.c
index d1f7439d173c2ba10791d6358dd90b4d50325442..3957cd6d6454b832594c971f5c6860b84d5e4a11 100644
(file)
--- a/
arch/x86/mm/numa_32.c
+++ b/
arch/x86/mm/numa_32.c
@@
-194,7
+194,7
@@
void *alloc_remap(int nid, unsigned long size)
size = ALIGN(size, L1_CACHE_BYTES);
if (!allocation || (allocation + size) >= node_remap_end_vaddr[nid])
- return
0
;
+ return
NULL
;
node_remap_alloc_vaddr[nid] += size;
memset(allocation, 0, size);
This page took
0.024897 seconds
and
5
git commands to generate.