mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
1 changed files with 1 additions and 1 deletions
2
hw/pci.c
2
hw/pci.c
|
@ -733,7 +733,7 @@ static void pci_update_mappings(PCIDevice *d)
|
|||
r = &d->io_regions[i];
|
||||
|
||||
/* this region isn't registered */
|
||||
if (r->size == 0)
|
||||
if (!r->size)
|
||||
continue;
|
||||
|
||||
if (r->type & PCI_BASE_ADDRESS_SPACE_IO) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue