浏览代码

[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>
Randy Dunlap 19 年之前
父节点
当前提交
423b41d773
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mm/page_alloc.c

+ 1 - 1
mm/page_alloc.c

@@ -1591,7 +1591,7 @@ static int __meminit __build_all_zonelists(void *dummy)
 void __meminit build_all_zonelists(void)
 void __meminit build_all_zonelists(void)
 {
 {
 	if (system_state == SYSTEM_BOOTING) {
 	if (system_state == SYSTEM_BOOTING) {
-		__build_all_zonelists(0);
+		__build_all_zonelists(NULL);
 		cpuset_init_current_mems_allowed();
 		cpuset_init_current_mems_allowed();
 	} else {
 	} else {
 		/* we have to stop all cpus to guaranntee there is no user
 		/* we have to stop all cpus to guaranntee there is no user