]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: io-apic - interrupt remapping fix
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 23 Sep 2008 19:00:02 +0000 (23:00 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:12 +0000 (16:53 +0200)
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>
arch/x86/kernel/io_apic.c

index 4cc9cb64c81198876427e55891049cbe7c3d6e8e..ed68a6f99dc27288924909b11987caec57ea24db 100644 (file)
@@ -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));