diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 6d519a699ac2109e5ec1c02251711e43bbac5033..e27eb6fc15f7f4089d3ddc30b8dd59f71c9c0e51 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -4948,13 +4948,12 @@ static void intel_iommu_tlb_sync(struct iommu_domain *domain, struct dmar_domain *dmar_domain = to_dmar_domain(domain); unsigned long iova_pfn = IOVA_PFN(gather->start); size_t size = gather->end - gather->start; - unsigned long start_pfn, last_pfn; + unsigned long start_pfn; unsigned long nrpages; int iommu_id; nrpages = aligned_nrpages(gather->start, size); start_pfn = mm_to_dma_pfn(iova_pfn); - last_pfn = start_pfn + nrpages - 1; for_each_domain_iommu(iommu_id, dmar_domain) iommu_flush_iotlb_psi(g_iommus[iommu_id], dmar_domain,