diff options
author | Isaku Yamahata | 2009-11-12 06:58:43 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2009-12-01 16:52:28 +0100 |
commit | ec50344230aad67a867ac59e4a0cd7233149484c (patch) | |
tree | ef671ec563482db4f8461e75ac8ae3447b3287d9 /hw/pci.c | |
parent | pci: remove unused constants (diff) | |
download | qemu-ec50344230aad67a867ac59e4a0cd7233149484c.tar.gz qemu-ec50344230aad67a867ac59e4a0cd7233149484c.tar.xz qemu-ec50344230aad67a867ac59e4a0cd7233149484c.zip |
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) { |