gnttab: drop a redundant expression from gnttab_release_mappings()
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:34:57 +0000 (09:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:34:57 +0000 (09:34 +0200)
This gnttab_host_mapping_get_page_type() invocation sits in the "else"
path of a conditional controlled by "map->flags & GNTMAP_readonly".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/grant_table.c

index b1930e2d8e0124564e052d918e9d920d99ed7540..5f35f78314da2b1e7a5ead387b0c0b38705e5ab1 100644 (file)
@@ -3801,9 +3801,7 @@ int gnttab_release_mappings(struct domain *d)
                 if ( gnttab_release_host_mappings(d) &&
                      !is_iomem_page(act->mfn) )
                 {
-                    if ( gnttab_host_mapping_get_page_type((map->flags &
-                                                            GNTMAP_readonly),
-                                                           d, rd) )
+                    if ( gnttab_host_mapping_get_page_type(false, d, rd) )
                         put_page_type(pg);
                     put_page(pg);
                 }