diff options
author | Gonglei | 2014-08-11 15:00:54 +0200 |
---|---|---|
committer | Michael Tokarev | 2014-08-15 16:54:06 +0200 |
commit | 337a3e5c7d3b5a5731f6e89f055e645ae6b9f40e (patch) | |
tree | f9209bad9d2490da8a29600f703e9c6e74029135 /hw | |
parent | audio: don't use 'Yoda conditions' (diff) | |
download | qemu-337a3e5c7d3b5a5731f6e89f055e645ae6b9f40e.tar.gz qemu-337a3e5c7d3b5a5731f6e89f055e645ae6b9f40e.tar.xz qemu-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')
-rw-r--r-- | hw/isa/isa-bus.c | 2 |
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); } |