Skip to contentSkip to conversation

dyn_array: fix typo

PATCH New Yinghai Lu 1 participant 1 message Aug 29, 2008

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 dyn_array: fix typo

Andrew found the typo could break some platforms

also fix one checkpatch warning

init/dyn_array.c +2 -3
index c4cd902..8192a1c 100644
@@ -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
 }