diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-10-07 01:16:01 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-07 08:54:55 -0500 |
commit | 5c17ca2505197c56d0097c66a4e5bda4d6f32fb6 (patch) | |
tree | 011adae1a2f9ce724c92629bd99b78507a7d97ec /hw/ide/isa.c | |
parent | dde8bbb44de41ea68f9bede0a6a778ce046b2bcf (diff) | |
download | qemu-5c17ca2505197c56d0097c66a4e5bda4d6f32fb6.zip qemu-5c17ca2505197c56d0097c66a4e5bda4d6f32fb6.tar.gz qemu-5c17ca2505197c56d0097c66a4e5bda4d6f32fb6.tar.bz2 |
Clean up test for qdev_init() failure
Some callers test for != 0, some for < 0. Normalize to < 0.
Patchworks-ID: 35171
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide/isa.c')
-rw-r--r-- | hw/ide/isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 3205f40..9f0fdd6 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -85,7 +85,7 @@ int isa_ide_init(int iobase, int iobase2, int isairq, qdev_prop_set_uint32(&dev->qdev, "iobase", iobase); qdev_prop_set_uint32(&dev->qdev, "iobase2", iobase2); qdev_prop_set_uint32(&dev->qdev, "irq", isairq); - if (qdev_init(&dev->qdev) != 0) + if (qdev_init(&dev->qdev) < 0) return -1; s = DO_UPCAST(ISAIDEState, dev, dev); |