From: Cyrill Gorcunov Date: Tue, 23 Sep 2008 19:00:02 +0000 (+0400) Subject: x86: io-apic - interrupt remapping fix X-Git-Tag: v2.6.28-rc1~80^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c1370b49cc4f09de5b447ddf688a3988a297dbfc;p=linux-2.6-omap-h63xx.git x86: io-apic - interrupt remapping fix Clean up obscure for() cycle with straight while() form Signed-off-by: Cyrill Gorcunov Cc: "Maciej W. Rozycki" Acked-by: Suresh Siddha Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 4cc9cb64c81..ed68a6f99dc 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) 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));