mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-21 03:16:59 +00:00
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>
This commit is contained in:
parent
2ab5bf67b7
commit
337a3e5c7d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user