aboutsummaryrefslogtreecommitdiff
path: root/hw/isa-bus.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-28 19:12:16 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-28 19:12:16 +0000
commit73538c31a8f2d5aba3d82d8e60dadcb40d59061b (patch)
treee7ddb1ec51185292d61d2ab2a18373add45a0803 /hw/isa-bus.c
parent1387fe4a95cc9e7b7fd997b7c676161bfac05c41 (diff)
downloadqemu-73538c31a8f2d5aba3d82d8e60dadcb40d59061b.zip
qemu-73538c31a8f2d5aba3d82d8e60dadcb40d59061b.tar.gz
qemu-73538c31a8f2d5aba3d82d8e60dadcb40d59061b.tar.bz2
Suppress kraxelisms
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/isa-bus.c')
-rw-r--r--hw/isa-bus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index 85ba354..2843b51 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -137,10 +137,12 @@ ISADevice *isa_create_simple(const char *name, uint32_t iobase, uint32_t iobase2
isa->iobase[0] = iobase;
isa->iobase[1] = iobase2;
qdev_init(dev);
- if (-1 != irq)
+ if (irq != -1) {
isa_connect_irq(isa, 0, irq);
- if (-1 != irq2)
+ }
+ if (irq2 != -1) {
isa_connect_irq(isa, 1, irq2);
+ }
return isa;
}