diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-11-12 14:58:43 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2009-12-01 17:52:28 +0200 |
commit | ec50344230aad67a867ac59e4a0cd7233149484c (patch) | |
tree | ef671ec563482db4f8461e75ac8ae3447b3287d9 /hw/pci.c | |
parent | 2c56b44b88d913c4f7acb444071052b55b37da34 (diff) |
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>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |