Skip to content

Commit

Permalink
x86: numa_32.c: fix sparse warning: Using plain integer as NULL pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and Ingo Molnar committed Feb 22, 2009
1 parent fc6fcdf commit 2366c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/numa_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2366c29

Please sign in to comment.