x86/mem-paging: fold p2m_mem_paging_prep()'s main if()-s
authorJan Beulich <jbeulich@suse.com>
Fri, 15 May 2020 13:57:56 +0000 (15:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 May 2020 13:57:56 +0000 (15:57 +0200)
commitc2612852288c410846e41a7a882317e8bc55b9ff
tree17cac5b754effd38a0b97a7fb218195448e16a98
parent58202ebc5a7fbf8f03875c2b5218d3deed6debe8
x86/mem-paging: fold p2m_mem_paging_prep()'s main if()-s

The condition of the second can be true only if the condition of the
first was met; the second half of the condition of the second then also
is redundant with an earlier check. Combine them, drop a pointless
local variable, and take the liberty to drop the affected gdprintk()
altogether, as we don't normally log anything on -EFAULT paths.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/p2m.c