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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent bb71257 commit f5209f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)