diff options
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 8245e62ed93f..17883cd82592 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -2236,13 +2236,9 @@ static void __target_IO_APIC_irq(unsigned int irq, unsigned int dest, struct irq | |||
2236 | struct irq_pin_list *entry; | 2236 | struct irq_pin_list *entry; |
2237 | u8 vector = cfg->vector; | 2237 | u8 vector = cfg->vector; |
2238 | 2238 | ||
2239 | entry = cfg->irq_2_pin; | 2239 | for (entry = cfg->irq_2_pin; entry != NULL; entry = entry->next) { |
2240 | for (;;) { | ||
2241 | unsigned int reg; | 2240 | unsigned int reg; |
2242 | 2241 | ||
2243 | if (!entry) | ||
2244 | break; | ||
2245 | |||
2246 | apic = entry->apic; | 2242 | apic = entry->apic; |
2247 | pin = entry->pin; | 2243 | pin = entry->pin; |
2248 | /* | 2244 | /* |
@@ -2255,9 +2251,6 @@ static void __target_IO_APIC_irq(unsigned int irq, unsigned int dest, struct irq | |||
2255 | reg &= ~IO_APIC_REDIR_VECTOR_MASK; | 2251 | reg &= ~IO_APIC_REDIR_VECTOR_MASK; |
2256 | reg |= vector; | 2252 | reg |= vector; |
2257 | io_apic_modify(apic, 0x10 + pin*2, reg); | 2253 | io_apic_modify(apic, 0x10 + pin*2, reg); |
2258 | if (!entry->next) | ||
2259 | break; | ||
2260 | entry = entry->next; | ||
2261 | } | 2254 | } |
2262 | } | 2255 | } |
2263 | 2256 | ||