aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-10-07 09:19:34 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-10-16 11:10:44 +0000
commit2e9947d2eaf1e9cbeb22ff15064bc70e7c9afe1e (patch)
treea1605f72f001a35af6da07887d2e3a7c6ea69317
parent0200db650e6386d44ba2a707d9f22ddf72681cf7 (diff)
downloadqemu-arm-2e9947d2eaf1e9cbeb22ff15064bc70e7c9afe1e.tar.gz
pc: Drop useless test from isa_irq_handler
IsaIrqState::ioapic is always non-NULL. Probably, the concrete qemu_irq was supposed to be tested, but that's already done by qemu_set_irq. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/pc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/pc.c b/hw/pc.c
index ded475805f..ff081d9342 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -96,9 +96,8 @@ void isa_irq_handler(void *opaque, int n, int level)
if (n < 16) {
qemu_set_irq(isa->i8259[n], level);
}
- if (isa->ioapic)
- qemu_set_irq(isa->ioapic[n], level);
-};
+ qemu_set_irq(isa->ioapic[n], level);
+}
static void ioport80_write(void *opaque, uint32_t addr, uint32_t data)
{