Skip to content

Commit

Permalink
x86: io-apic - interrupt remapping fix
Browse files Browse the repository at this point in the history
Clean up obscure for() cycle with straight while() form

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Oct 16, 2008
1 parent 7564676 commit c1370b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,8 @@ int save_mask_IO_APIC_setup(void)
return 0;

nomem:
for (; apic > 0; apic--)
kfree(early_ioapic_entries[apic]);
kfree(early_ioapic_entries[apic]);
while (apic >= 0)
kfree(early_ioapic_entries[apic--]);
memset(early_ioapic_entries, 0,
ARRAY_SIZE(early_ioapic_entries));

Expand Down

0 comments on commit c1370b4

Please sign in to comment.