Skip to contentSkip to conversation

x86/iommu: remove useless code

PATCH New Li, Zhen-Hua 1 participant 1 message Jun 17, 2013 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/iommu: remove useless code

From: "Li, Zhen-Hua" <[email protected]>

In intel-iommu.c, the function dma_pte_addr does not change the value of its parameter (pte). So it is useless if it nobody catches its return value.

---
 drivers/iommu/intel-iommu.c |    1 -
 1 file changed, 1 deletion(-)
drivers/iommu/intel-iommu.c +0 -1
index b4f0e28..d9d378b 100644
@@ -809,7 +809,6 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,
 				/* Someone else set it while we were thinking; use theirs. */
 				free_pgtable_page(tmp_page);
 			} else {
-				dma_pte_addr(pte);
 				domain_flush_cache(domain, pte, sizeof(*pte));
 			}
 		}
Signature · 1 line
1.7.10.4