[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] gnttab: drop a redundant expression from gnttab_release_mappings()
commit 0e719f6ec95d7f9c9151ecbbdcba92028307e2b4 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Tue Sep 7 09:34:57 2021 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Sep 7 09:34:57 2021 +0200 gnttab: drop a redundant expression from gnttab_release_mappings() 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@xxxxxxxx> Acked-by: Julien Grall <jgrall@xxxxxxxxxx> --- xen/common/grant_table.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index b1930e2d8e..5f35f78314 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -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); } -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |