diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-06-08 06:37:52 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-07-14 16:32:50 -0400 |
commit | 638f2f8c52a92c15ebda9e50d84c1ab56fc42e42 (patch) | |
tree | 40d2f20f48d832baeb3436dc0decb12e7ca77e84 /arch/x86/kernel/apic | |
parent | 4eea6fff612f54380dd642b045bf03ac0613fe3e (diff) |
x86/ioapic.c: convert __target_IO_APIC_irq to conventional for() loop
Use a normal for() loop in __target_IO_APIC_irq().
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/kernel/apic')
-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 | ||