提交 9e6cad9b 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

dyn_array: remove one panic

Andrew said, we don't need duplicated panic.
because __alloc_bootmem already have that.
Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 3c2cbd24
...@@ -33,11 +33,9 @@ void __init pre_alloc_dyn_array(void) ...@@ -33,11 +33,9 @@ void __init pre_alloc_dyn_array(void)
/* allocate them all together */ /* allocate them all together */
max_align = max_t(unsigned long, max_align, PAGE_SIZE); max_align = max_t(unsigned long, max_align, PAGE_SIZE);
ptr = __alloc_bootmem_nopanic(total_size, max_align, 0); ptr = __alloc_bootmem(total_size, max_align, 0);
if (!ptr)
panic("Can not alloc dyn_alloc\n");
phys = virt_to_phys(ptr); phys = virt_to_phys(ptr);
for (daa = __dyn_array_start ; daa < __dyn_array_end; daa++) { for (daa = __dyn_array_start ; daa < __dyn_array_end; daa++) {
struct dyn_array *da = *daa; struct dyn_array *da = *daa;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册