diff --git a/xen/drivers/passthrough/amd/iommu_map.c b/xen/drivers/passthrough/amd/iommu_map.c index 2f3b47b366..3b7cf649ca 100644 --- a/xen/drivers/passthrough/amd/iommu_map.c +++ b/xen/drivers/passthrough/amd/iommu_map.c @@ -194,12 +194,6 @@ static int iommu_pde_from_dfn(struct domain *d, unsigned long dfn, next_table_mfn = mfn_x(page_to_mfn(table)); - if ( level == 1 ) - { - pt_mfn[level] = next_table_mfn; - return 0; - } - while ( level > 1 ) { unsigned int next_level = level - 1;