Commit b558cb35 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

dyn_array: fix typo

Andrew found the typo could break some platforms.

also fix a checkpatch warning.
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 02c1df19
...@@ -54,7 +54,7 @@ void __init pre_alloc_dyn_array(void) ...@@ -54,7 +54,7 @@ void __init pre_alloc_dyn_array(void)
da->init_work(da); da->init_work(da);
} }
#else #else
#ifdef CONFIF_GENERIC_HARDIRQS #ifdef CONFIG_GENERIC_HARDIRQS
unsigned int i; unsigned int i;
for (i = 0; i < NR_IRQS; i++) for (i = 0; i < NR_IRQS; i++)
...@@ -117,9 +117,8 @@ void __init per_cpu_alloc_dyn_array(int cpu, char *ptr) ...@@ -117,9 +117,8 @@ void __init per_cpu_alloc_dyn_array(int cpu, char *ptr)
phys += size; phys += size;
if (da->init_work) { if (da->init_work)
da->init_work(da); da->init_work(da);
}
} }
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment