Skip to contentSkip to conversation

vfio/common: Remove redundand copy of local variable

PATCH In review Alexey Kardashevskiy 2 participants 2 messages Jan 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio/common: Remove redundand copy of local variable

There is already @hostwin in vfio_listener_region_add() so there is no point in having the other one.

Fixes 2e4109de "vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)"
---
 hw/vfio/common.c | 1 -
 1 file changed, 1 deletion(-)
hw/vfio/common.c +0 -1
index b77be3a..3d652c8 100644
@@ -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 */
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Alexey Kardashevskiy

There is already @hostwin in vfio_listener_region_add() so there is no point in having the other one.

Fixes 2e4109de "vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)"

Eric

Quoted 17 lines
---
 hw/vfio/common.c | 1 -
 1 file changed, 1 deletion(-)
hw/vfio/common.c +0 -1
index b77be3a..3d652c8 100644
@@ -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 */