lkml.org 
[lkml]   [2008]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] dyn_array: fix typo
Date
Andrew found the typo could break some platforms

also fix one checkpatch warning

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

diff --git a/init/dyn_array.c b/init/dyn_array.c
index c4cd902..8192a1c 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++)
@@ -116,9 +116,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
}

\
 
 \ /
  Last update: 2008-08-30 01:49    [W:0.465 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site