]> Git Repo - qemu.git/commit
xen: slightly simplify bufioreq handling
authorJan Beulich <[email protected]>
Fri, 25 Nov 2016 10:06:33 +0000 (03:06 -0700)
committerStefano Stabellini <[email protected]>
Mon, 28 Nov 2016 19:26:04 +0000 (11:26 -0800)
commitf37f29d31488fe36354e59b2fdc4fae83b2cf763
treeec92eb9a0e9c8e75902c69396e4f36a43026b172
parentff3b8b8f864fa5721b196ca3dcc48853b0ee0275
xen: slightly simplify bufioreq handling

There's no point setting fields always receiving the same value on each
iteration, as handle_ioreq() doesn't alter them anyway. Set state and
count once ahead of the loop, drop the redundant clearing of
data_is_ptr, and avoid the meaningless (because count is 1) setting of
df altogether.

Also avoid doing an unsigned long calculation of size when the field to
be initialized is only 32 bits wide (and the shift value in the range
0...3).

Signed-off-by: Jan Beulich <[email protected]>
Reviewed-by: Paul Durrant <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
xen-hvm.c
This page took 0.022684 seconds and 4 git commands to generate.