AMD/IOMMU: drop redundant code

The level 1 special exit path is unnecessary in iommu_pde_from_dfn() -
the subsequent code takes care of this case quite fine.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2020-02-12 10:54:08 +01:00
1 parent 6827bea2b3
commit 66b282bbb1
1 file changed
-6
-6
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.