Skip to content

Commit f5209f9

Browse files
Kefeng Wangjoergroedel
authored andcommitted
iommu/vt-d: Drop duplicate check in dma_pte_free_pagetable()
The BUG_ON check exists in dma_pte_clear_range(), kill the duplicate check. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Link: https://lore.kernel.org/r/20211025032307.182974-1-wangkefeng.wang@huawei.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20211217083817.1745419-3-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent bb71257 commit f5209f9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,10 +1280,6 @@ static void dma_pte_free_pagetable(struct dmar_domain *domain,
12801280
unsigned long last_pfn,
12811281
int retain_level)
12821282
{
1283-
BUG_ON(!domain_pfn_supported(domain, start_pfn));
1284-
BUG_ON(!domain_pfn_supported(domain, last_pfn));
1285-
BUG_ON(start_pfn > last_pfn);
1286-
12871283
dma_pte_clear_range(domain, start_pfn, last_pfn);
12881284

12891285
/* We don't need lock here; nobody else touches the iova range */

0 commit comments

Comments
 (0)