Skip to content

Commit

Permalink
dyn_array: fix typo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 02c1df1 commit b558cb3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init/dyn_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b558cb3

Please sign in to comment.