summaryrefslogtreecommitdiff
path: root/hw/isa
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-08-11 21:00:54 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-08-15 18:54:06 +0400
commit337a3e5c7d3b5a5731f6e89f055e645ae6b9f40e (patch)
treef9209bad9d2490da8a29600f703e9c6e74029135 /hw/isa
parent2ab5bf67b7c3fe20f1645dadddd28b1881a25c47 (diff)
downloadqemu-337a3e5c7d3b5a5731f6e89f055e645ae6b9f40e.zip
isa-bus: don't use 'Yoda conditions'
imitate nearby code about using '!value' or 'value == NULL' Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/isa')
-rw-r--r--hw/isa/isa-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c
index b28981bfde..cc85e538b1 100644
--- a/hw/isa/isa-bus.c
+++ b/hw/isa/isa-bus.c
@@ -50,7 +50,7 @@ ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space_io)
fprintf(stderr, "Can't create a second ISA bus\n");
return NULL;
}
- if (NULL == dev) {
+ if (!dev) {
dev = qdev_create(NULL, "isabus-bridge");
qdev_init_nofail(dev);
}