sim-card
/
qemu
Archived
10
0
Fork 0

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:
Isaku Yamahata 2009-11-12 14:58:43 +09:00 committed by Michael S. Tsirkin
parent 2c56b44b88
commit ec50344230
1 changed files with 1 additions and 1 deletions

View File

@ -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) {