[PATCH 4/5] pci-assign: Drop write-only AssignedDevRegion::num

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No one was reading back this field.

Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
---
 hw/device-assignment.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index da50069..713e32a 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) {
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux