projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab5bf6
)
isa-bus: don't use 'Yoda conditions'
author
Gonglei
<arei.gonglei@huawei.com>
Mon, 11 Aug 2014 13:00:54 +0000
(21:00 +0800)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 15 Aug 2014 14:54:06 +0000
(18:54 +0400)
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>
hw/isa/isa-bus.c
patch
|
blob
|
history
diff --git
a/hw/isa/isa-bus.c
b/hw/isa/isa-bus.c
index b28981bfdea6811d49fb68bb013c303345ee71a4..cc85e538b11f4dac8a58a2e1eedce8f74e1d0780 100644
(file)
--- 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);
}