simplify xenmem_add_to_physmap_batch()
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 10:05:05 +0000 (11:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 10:05:05 +0000 (11:05 +0100)
commitd287c90369d870f15cc3b3cf113287093e7118b9
tree2f4b26b48790c2973040bfd7086b60135af13956
parent6f0e865d0e9b875c2770b5634a002a0a531aceca
simplify xenmem_add_to_physmap_batch()

There's no need for
- advancing the handles and at the same time using
  __copy_{from,to}_guest_offset(),
- an "out" label,
- local variables "done" and (function scope) "rc".

To better reflect its resulting use also rename the function's "start"
parameter to "extent".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/memory.c