Skip to content

Commit

Permalink
x86: remove unneeded round_up
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Feb 1, 2008
1 parent 31f3dff commit 9347e0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,9 @@ static void * __init early_node_mem(int nodeid, unsigned long start,
unsigned long mem = find_e820_area(start, end, size, align);
void *ptr;

if (mem != -1L) {
mem = round_up(mem, align);
if (mem != -1L)
return __va(mem);
}

ptr = __alloc_bootmem_nopanic(size, align, __pa(MAX_DMA_ADDRESS));
if (ptr == NULL) {
printk(KERN_ERR "Cannot find %lu bytes in node %d\n",
Expand Down

0 comments on commit 9347e0b

Please sign in to comment.