aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-11-12 14:58:43 +0900
committerMichael S. Tsirkin <mst@redhat.com>2009-12-01 17:52:28 +0200
commitec50344230aad67a867ac59e4a0cd7233149484c (patch)
treeef671ec563482db4f8461e75ac8ae3447b3287d9
parent2c56b44b88d913c4f7acb444071052b55b37da34 (diff)
downloadqemu-ec50344230aad67a867ac59e4a0cd7233149484c.zip
qemu-ec50344230aad67a867ac59e4a0cd7233149484c.tar.gz
qemu-ec50344230aad67a867ac59e4a0cd7233149484c.tar.bz2
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>
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 64cf0a8..d6f647c 100644
--- a/hw/pci.c
+++ b/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) {