x86/p2m: use available local variable in guest_physmap_add_entry()
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Apr 2020 15:17:29 +0000 (17:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Apr 2020 15:17:29 +0000 (17:17 +0200)
commitd917077b8d0adb78b27d4282a096d98278c52243
tree1f3d71162e741741aaa42f10ea27661126f68aff
parent9ff09aefc46385dc04c38b6dd1f1ac25f784f482
x86/p2m: use available local variable in guest_physmap_add_entry()

The domain is being passed in - no need to obtain it from p2m->domain.
Also drop a pointless cast and simplify expressions while touching this
code anyway.

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