Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83e83d546cb1b6e3c566c97de97bd2397e22ab6c
Commit:     83e83d546cb1b6e3c566c97de97bd2397e22ab6c
Parent:     17d1486a69657a3de1482d1bd4882c3ce1d9cf1e
Author:     Yoann Padioleau <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 18:04:35 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:15:52 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Cc: [EMAIL PROTECTED]
    Cc: [EMAIL PROTECTED]
    Cc: [EMAIL PROTECTED]
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 arch/x86/mm/numa_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index 6da2355..97e8ac7 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to