aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-09-27 04:50:12 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 11:26:13 -0400
commit423b41d773abe443bb546ce91361192073b96f88 (patch)
tree495b410fb4001ecf0daba6198e6b4c009a638ff8 /mm/page_alloc.c
parent17a3b05047119b7fc72ef03962e202becc659579 (diff)
[PATCH] mm/page_alloc: use NULL instead of 0 for ptr
Use NULL instead of 0 for pointer value, eliminate sparse warnings. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 490aee1f2ce8..4f59d90b81e6 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1591,7 +1591,7 @@ static int __meminit __build_all_zonelists(void *dummy)
1591void __meminit build_all_zonelists(void) 1591void __meminit build_all_zonelists(void)
1592{ 1592{
1593 if (system_state == SYSTEM_BOOTING) { 1593 if (system_state == SYSTEM_BOOTING) {
1594 __build_all_zonelists(0); 1594 __build_all_zonelists(NULL);
1595 cpuset_init_current_mems_allowed(); 1595 cpuset_init_current_mems_allowed();
1596 } else { 1596 } else {
1597 /* we have to stop all cpus to guaranntee there is no user 1597 /* we have to stop all cpus to guaranntee there is no user