aboutsummaryrefslogtreecommitdiff
path: root/init/dyn_array.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-09-04 20:57:13 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:53:06 +0200
commitb558cb35f1ef92837cba0fba9aad267e5eff1f65 (patch)
tree7921eafd4ec7d6df570a3a378379d12f45167f6c /init/dyn_array.c
parent02c1df199c990cd21c09a4dffaa06d4e0b7bf2bf (diff)
dyn_array: fix typo
Andrew found the typo could break some platforms. also fix a checkpatch warning. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init/dyn_array.c')
-rw-r--r--init/dyn_array.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/init/dyn_array.c b/init/dyn_array.c
index 1dc08140f3c..cf1e04c83b3 100644
--- a/init/dyn_array.c
+++ b/init/dyn_array.c
@@ -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
}