mirror of https://github.com/xqemu/xqemu.git
pci: clean up of pci_update_mappings()
This patch converts r->size == 0 to !r_size. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2c56b44b88
commit
ec50344230
2
hw/pci.c
2
hw/pci.c
|
@ -733,7 +733,7 @@ static void pci_update_mappings(PCIDevice *d)
|
||||||
r = &d->io_regions[i];
|
r = &d->io_regions[i];
|
||||||
|
|
||||||
/* this region isn't registered */
|
/* this region isn't registered */
|
||||||
if (r->size == 0)
|
if (!r->size)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (r->type & PCI_BASE_ADDRESS_SPACE_IO) {
|
if (r->type & PCI_BASE_ADDRESS_SPACE_IO) {
|
||||||
|
|
Loading…
Reference in New Issue