summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorAlistair Francis2017-06-29 19:16:35 +0200
committerPaolo Bonzini2017-07-04 14:39:27 +0200
commit0ec7b534821c8b287317f97cd98ee3f908bd3839 (patch)
treef7f5e58e271dd9b72aeb8abdda5a3f253705d14e /scripts/modules
parentxsave_helper: pull xsave and xrstor out of kvm.c into helper function (diff)
downloadqemu-0ec7b534821c8b287317f97cd98ee3f908bd3839.tar.gz
qemu-0ec7b534821c8b287317f97cd98ee3f908bd3839.tar.xz
qemu-0ec7b534821c8b287317f97cd98ee3f908bd3839.zip
util/oslib-win32: Remove if conditional
The original ready < nhandles - 1 can be re-written as ready + 1 < nhandles. The check was actually incorrect because WAIT_OBJECT_0 was not subtracted from ready; it worked because WAIT_OBJECT_0 is zero. After subtracting WAIT_OBJECT_0, the result is the same condition that we are checking on the first itteration of the for loop. This means we can remove the if statement and let the for loop check the code. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Message-Id: <a14083d681951f3999a0e9314605cb706381ae8d.1498756113.git.alistair.francis@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions