diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-09-23 15:00:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:12 -0400 |
commit | c1370b49cc4f09de5b447ddf688a3988a297dbfc (patch) | |
tree | 79ad9028b942d0f6a6deb2ccb66223dc38689745 /arch/x86 | |
parent | 7564676813780e0ba4dacf95338202cb72d2172d (diff) |
x86: io-apic - interrupt remapping fix
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/io_apic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 4cc9cb64c811..ed68a6f99dc2 100644 --- a/arch/x86/kernel/io_apic.c +++ b/arch/x86/kernel/io_apic.c | |||
@@ -830,9 +830,8 @@ int save_mask_IO_APIC_setup(void) | |||
830 | return 0; | 830 | return 0; |
831 | 831 | ||
832 | nomem: | 832 | nomem: |
833 | for (; apic > 0; apic--) | 833 | while (apic >= 0) |
834 | kfree(early_ioapic_entries[apic]); | 834 | kfree(early_ioapic_entries[apic--]); |
835 | kfree(early_ioapic_entries[apic]); | ||
836 | memset(early_ioapic_entries, 0, | 835 | memset(early_ioapic_entries, 0, |
837 | ARRAY_SIZE(early_ioapic_entries)); | 836 | ARRAY_SIZE(early_ioapic_entries)); |
838 | 837 | ||