提交 9347e0b0 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

x86: remove unneeded round_up

Signed-off-by: NYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 31f3dff6
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册