aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2018-02-06 11:08:27 -0700
committerAlex Williamson <alex.williamson@redhat.com>2018-02-06 11:08:27 -0700
commita5b04f7c5380340342ad5623b34c57fe3bab9b29 (patch)
treec8695199c4c8add29ca231cfe3b790f5c24767ea /hw/vfio
parent89202c6fa87d4f181111901bb08dcd1538f8ab35 (diff)
vfio/common: Remove redundant copy of local variable
There is already @hostwin in vfio_listener_region_add() so there is no point in having the other one. Fixes: 2e4109de8e58 ("vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)") Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r--hw/vfio/common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index ec41f93b74..ee9240daeb 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -435,7 +435,6 @@ static void vfio_listener_region_add(MemoryListener *listener,
end = int128_get64(int128_sub(llend, int128_one()));
if (container->iommu_type == VFIO_SPAPR_TCE_v2_IOMMU) {
- VFIOHostDMAWindow *hostwin;
hwaddr pgsize = 0;
/* For now intersections are not allowed, we may relax this later */