xen/gnttab: Simplify gnttab_map_frame()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 23 Oct 2018 18:49:34 +0000 (19:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Nov 2018 17:58:46 +0000 (17:58 +0000)
commita2f6982a147821ce3fb129a161939557613a675d
tree8e3af4d21e74dd8e3d856d6e3e2a98b380b50155
parent53fa8c88833207e950014da12cf535847b789774
xen/gnttab: Simplify gnttab_map_frame()

 * Reflow some lines to remove unnecessary line breaks.
 * Factor out the gnttab_get_frame_gfn() calculation.  Neither x86 nor ARM
   builds seem to be able to fold the two calls, and the resulting code is far
   easier to follow.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c