summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-30 11:05:41 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-06-01 20:51:10 -0300
commit400aaf6ffc28ce4622779e43d8aa994b31427401 (patch)
tree15a34e32e2726ee5e5f0963d3e4e4cdc72267fe3
parentpci-assign: Privatize type definitions (diff)
downloadqemu-kvm-400aaf6ffc28ce4622779e43d8aa994b31427401.tar.gz
qemu-kvm-400aaf6ffc28ce4622779e43d8aa994b31427401.tar.bz2
qemu-kvm-400aaf6ffc28ce4622779e43d8aa994b31427401.zip
pci-assign: Drop write-only AssignedDevRegion::num
No one was reading back this field. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--hw/device-assignment.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index da50069d8..713e32aaf 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -95,7 +95,6 @@ typedef struct {
void *r_virtbase; /* mmapped access address for memory regions */
uint32_t r_baseport; /* the base guest port for I/O regions */
} u;
- int num; /* our index within v_addrs[] */
pcibus_t e_size; /* emulated size of region in bytes */
pcibus_t r_size; /* real size of region in bytes */
PCIRegion *region;
@@ -449,7 +448,6 @@ static int assigned_dev_register_regions(PCIRegion *io_regions,
for (i = 0; i < regions_num; i++, cur_region++) {
if (!cur_region->valid)
continue;
- pci_dev->v_addrs[i].num = i;
/* handle memory io regions */
if (cur_region->type & IORESOURCE_MEM) {