Skip to contentSkip to conversation

use NULL instead of 0

PATCH New Jesse Barnes 1 participant 1 message Oct 20, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use NULL instead of 0

Clean up a couple of places that were using 0 instead of NULL, which is the more proper value.

Thanks,
Jesse

===== arch/ia64/mm/discontig.c 1.22 vs edited =====

arch/ia64/mm/discontig.c +1 -1
@@ -681,7 +681,7 @@
 				PAGE_ALIGN(max_low_pfn * sizeof(struct page));
 			vmem_map = (struct page *) vmalloc_end;
 
-			efi_memmap_walk(create_mem_map_page_table, 0);
+			efi_memmap_walk(create_mem_map_page_table, NULL);
 			printk("Virtual mem_map starts at 0x%p\n", vmem_map);
 		}
 

===== arch/ia64/mm/numa.c 1.7 vs edited =====

arch/ia64/mm/numa.c +1 -1
@@ -70,7 +70,7 @@
 	memset(sysfs_cpus, 0, sizeof(struct cpu) * NR_CPUS);
 
 	for (i = 0; i < numnodes; i++)
-		if ((err = register_node(&sysfs_nodes[i], i, 0)))
+		if ((err = register_node(&sysfs_nodes[i], i, NULL)))
 			goto out;
 
 	for (i = 0; i < NR_CPUS; i++)