x86: numa_32.c: fix sparse warning: Using plain integer as NULL pointer
authorHannes Eder <hannes@hanneseder.net>
Sun, 22 Feb 2009 00:01:13 +0000 (01:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 22 Feb 2009 08:27:12 +0000 (09:27 +0100)
Fix this sparse warning:

  arch/x86/mm/numa_32.c:197:24: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Cc: trivial@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/numa_32.c

index d1f7439d173c2ba10791d6358dd90b4d50325442..3957cd6d6454b832594c971f5c6860b84d5e4a11 100644 (file)
@@ -194,7 +194,7 @@ void *alloc_remap(int nid, unsigned long size)
        size = ALIGN(size, L1_CACHE_BYTES);
 
        if (!allocation || (allocation + size) >= node_remap_end_vaddr[nid])
-               return 0;
+               return NULL;
 
        node_remap_alloc_vaddr[nid] += size;
        memset(allocation, 0, size);