KVM: Return an error code only as a constant in kvm_get_dirty_log_protect()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 22 Jan 2017 16:30:16 +0000 (17:30 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Feb 2017 11:30:06 +0000 (12:30 +0100)
commit58d6db34917278614cbb3a329b66498658560a46
treeaebbd0922155e6d890e30c4bfadd5ccf9fd76f50
parentf6a3b168e56abe094b5c93dbafc2f0a0bf64e702
KVM: Return an error code only as a constant in kvm_get_dirty_log_protect()

* Return an error code without storing it in an intermediate variable.

* Delete the local variable "r" and the jump label "out" which became
  unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c