x86: ioapic: Split out the nested loop in setup_IO_APIC_irqs()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 13:31:36 +0000 (14:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 16:26:49 +0000 (17:26 +0100)
commited972ccf434a9881a5881915ae04602af2776bad
tree49905d465c0a0e5797b4c323eb8386531e23d338
parentc8d6b8fe72216ca47e399204b58c8be0448d4083
x86: ioapic: Split out the nested loop in setup_IO_APIC_irqs()

Two consecutive

    for(...)
    for(...)

lines to avoid an extra indentation are just horrible to read. I had
to look more than once to figure out what the code is doing.

Split out the inner loop into a separate function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c