Commit 83e83d54 authored by Yoann Padioleau's avatar Yoann Padioleau Committed by Thomas Gleixner

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: default avatarYoann Padioleau <padator@wanadoo.fr>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: ak@suse.de
Cc: discuss@x86-64.org
Cc: akpm@linux-foundation.org
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 17d1486a
...@@ -166,7 +166,7 @@ early_node_mem(int nodeid, unsigned long start, unsigned long end, ...@@ -166,7 +166,7 @@ early_node_mem(int nodeid, unsigned long start, unsigned long end,
return __va(mem); return __va(mem);
ptr = __alloc_bootmem_nopanic(size, ptr = __alloc_bootmem_nopanic(size,
SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)); SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS));
if (ptr == 0) { if (ptr == NULL) {
printk(KERN_ERR "Cannot find %lu bytes in node %d\n", printk(KERN_ERR "Cannot find %lu bytes in node %d\n",
size, nodeid); size, nodeid);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment