KVM: Return an error code only as a constant in kvm_get_dirty_log()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 22 Jan 2017 16:41:07 +0000 (17:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Feb 2017 11:30:14 +0000 (12:30 +0100)
commit843574a3ede1d4d3f3c88317a50d5c76d5a9515c
treea5e447f9306c8159023eb9e1fa35e131fe290d3b
parent58d6db34917278614cbb3a329b66498658560a46
KVM: Return an error code only as a constant in kvm_get_dirty_log()

* 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