From: Julien Grall Date: Wed, 20 Jul 2016 16:10:49 +0000 (+0100) Subject: xen/arm: p2m: Use p2m_is_foreign in get_page_from_gfn to avoid open coding X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~695 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8cfe8bcf33cf371f3f1cbf7029d0bc1e2fa12769;p=xen.git xen/arm: p2m: Use p2m_is_foreign in get_page_from_gfn to avoid open coding No functional change. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h index 8fe78c1d76..dbbcefe326 100644 --- a/xen/include/asm-arm/p2m.h +++ b/xen/include/asm-arm/p2m.h @@ -227,7 +227,7 @@ static inline struct page_info *get_page_from_gfn( * get_page won't work on foreign mapping because the page doesn't * belong to the current domain. */ - if ( p2mt == p2m_map_foreign ) + if ( p2m_is_foreign(p2mt) ) { struct domain *fdom = page_get_owner_and_reference(page); ASSERT(fdom != NULL);