From: Yoann Padioleau Date: Wed, 17 Oct 2007 16:04:35 +0000 (+0200) Subject: x86: 0 -> NULL, for arch/x86_64 X-Git-Tag: v2.6.24-rc1~476^2~83 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=83e83d546cb1b6e3c566c97de97bd2397e22ab6c;p=linux-2.6-omap-h63xx.git x86: 0 -> NULL, for arch/x86_64 When comparing a pointer, it's clearer to compare it to NULL than to 0. [ tglx: arch/x86 adaptation ] Signed-off-by: Yoann Padioleau Signed-off-by: Andi Kleen Cc: ak@suse.de Cc: discuss@x86-64.org Cc: akpm@linux-foundation.org Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 6da23552226..97e8ac75568 100644 --- a/arch/x86/mm/numa_64.c +++ b/arch/x86/mm/numa_64.c @@ -166,7 +166,7 @@ early_node_mem(int nodeid, unsigned long start, unsigned long end, return __va(mem); ptr = __alloc_bootmem_nopanic(size, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)); - if (ptr == 0) { + if (ptr == NULL) { printk(KERN_ERR "Cannot find %lu bytes in node %d\n", size, nodeid); return NULL;