x86/mm: further simplify cleanup_page_mappings()
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Jun 2022 08:23:31 +0000 (10:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jun 2022 08:23:31 +0000 (10:23 +0200)
With the removal of update_xen_mappings() there's no need anymore for a
2nd error code variable to transiently hold the IOMMU unmap return
value.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c

index 4f749fd8887ba6e428a4cbc5df1ee77101d0f6d2..ac74ae389c991991e212a5a9eceb4f97262bf244 100644 (file)
@@ -2470,12 +2470,7 @@ static int cleanup_page_mappings(struct page_info *page)
         struct domain *d = page_get_owner(page);
 
         if ( d && unlikely(need_iommu_pt_sync(d)) && is_pv_domain(d) )
-        {
-            int rc2 = iommu_legacy_unmap(d, _dfn(mfn), 1u << PAGE_ORDER_4K);
-
-            if ( !rc )
-                rc = rc2;
-        }
+            rc = iommu_legacy_unmap(d, _dfn(mfn), 1u << PAGE_ORDER_4K);
 
         if ( likely(!is_special_page(page)) )
         {