]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vfio/common: Remove redundant copy of local variable
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 6 Feb 2018 18:08:27 +0000 (11:08 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 6 Feb 2018 18:08:27 +0000 (11:08 -0700)
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

index ec41f93b74793696bc4122cd4a6b0032605a37fc..ee9240daeb5d24be0808b0084378f9f6e226fb2e 100644 (file)
@@ -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 */