]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/kvm: ensure ret always set
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 2 Oct 2019 10:22:12 +0000 (11:22 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2019 10:48:42 +0000 (12:48 +0200)
commit87287ac02c39a04041f727c633bb9cc7a0339d91
tree1298073ce4728914dcd39b0ad066b9b0c4612ed9
parent7f21573c822805a8e6be379d9bcf3ad9effef3dc
accel/kvm: ensure ret always set

Some of the cross compilers rightly complain there are cases where ret
may not be set. 0 seems to be the reasonable default unless particular
slot explicitly returns -1.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c