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

dyn_array: fix typo

Andrew found the typo could break some platforms.

also fix a checkpatch warning.
Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 02c1df19
......@@ -54,7 +54,7 @@ void __init pre_alloc_dyn_array(void)
da->init_work(da);
}
#else
#ifdef CONFIF_GENERIC_HARDIRQS
#ifdef CONFIG_GENERIC_HARDIRQS
unsigned int i;
for (i = 0; i < NR_IRQS; i++)
......@@ -117,9 +117,8 @@ void __init per_cpu_alloc_dyn_array(int cpu, char *ptr)
phys += size;
if (da->init_work) {
if (da->init_work)
da->init_work(da);
}
}
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册