]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b575c5949cc6fa4bc2e1f38dfdc1e78223d1bfc
treea5e447f9306c8159023eb9e1fa35e131fe290d3b
parent3797103f084b66496a395163f871f5295994513d
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