]> xenbits.xensource.com Git - people/jgross/xen.git/commit
x86/HVM: fold hvm_io_assist() into its only caller
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:50:09 +0000 (17:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:50:09 +0000 (17:50 +0200)
commit83bb55fa38f7cbd4c8a670c9a01c8c47642d969e
tree756f164be35d14e39c33d6ddbd39e961b3566aa8
parent859447ab7b281bcdb6011aae990077abb8800ecf
x86/HVM: fold hvm_io_assist() into its only caller

While there are two call sites, the function they're in can be slightly
re-arranged such that the code sequence can be added at its bottom. Note
that the function's only caller has already checked sv->pending, and
that the prior while() loop was just a slightly more fancy if()
(allowing an early break out of the construct).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hvm/ioreq.c