diff mbox series

[PULL,10/11] vfio/common: Remove redundant copy of local variable

Message ID 20180206184403.14644.95864.stgit@gimli.home
State New
Headers show
Series [PULL,01/11] memory/iommu: Add get_attr() | expand

Commit Message

Alex Williamson Feb. 6, 2018, 6:44 p.m. UTC
From: Alexey Kardashevskiy <aik@ozlabs.ru>

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>
---
 hw/vfio/common.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index ec41f93b7479..ee9240daeb5d 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 */