diff options
-rw-r--r-- | arch/x86/kernel/io_apic_32.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/io_apic_64.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c index 6d69de716b5e..2e2f42074e18 100644 --- a/arch/x86/kernel/io_apic_32.c +++ b/arch/x86/kernel/io_apic_32.c | |||
@@ -1996,8 +1996,7 @@ static inline void init_IO_APIC_traps(void) | |||
1996 | * 0x80, because int 0x80 is hm, kind of importantish. ;) | 1996 | * 0x80, because int 0x80 is hm, kind of importantish. ;) |
1997 | */ | 1997 | */ |
1998 | for (irq = 0; irq < NR_IRQS ; irq++) { | 1998 | for (irq = 0; irq < NR_IRQS ; irq++) { |
1999 | int tmp = irq; | 1999 | if (IO_APIC_IRQ(irq) && !irq_vector[irq]) { |
2000 | if (IO_APIC_IRQ(tmp) && !irq_vector[tmp]) { | ||
2001 | /* | 2000 | /* |
2002 | * Hmm.. We don't have an entry for this, | 2001 | * Hmm.. We don't have an entry for this, |
2003 | * so default to an old-fashioned 8259 | 2002 | * so default to an old-fashioned 8259 |
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 616c53afb711..09ea0ec39de6 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -1527,8 +1527,7 @@ static inline void init_IO_APIC_traps(void) | |||
1527 | * 0x80, because int 0x80 is hm, kind of importantish. ;) | 1527 | * 0x80, because int 0x80 is hm, kind of importantish. ;) |
1528 | */ | 1528 | */ |
1529 | for (irq = 0; irq < NR_IRQS ; irq++) { | 1529 | for (irq = 0; irq < NR_IRQS ; irq++) { |
1530 | int tmp = irq; | 1530 | if (IO_APIC_IRQ(irq) && !irq_cfg[irq].vector) { |
1531 | if (IO_APIC_IRQ(tmp) && !irq_cfg[tmp].vector) { | ||
1532 | /* | 1531 | /* |
1533 | * Hmm.. We don't have an entry for this, | 1532 | * Hmm.. We don't have an entry for this, |
1534 | * so default to an old-fashioned 8259 | 1533 | * so default to an old-fashioned 8259 |