]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Make init_rmode_tss() return 0 on success.
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Sep 2014 11:37:40 +0000 (13:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:07:48 +0000 (14:07 +0200)
commit60be21fd6ccabe5a657c24f7bd589c94147889a7
tree5ec9ecfc04c732e3de01ef786c8baeb8bc52b6fa
parent051a58a903c99acb7888efb7c474b3deccc7b969
kvm: Make init_rmode_tss() return 0 on success.

In init_rmode_tss(), there two variables indicating the return
value, r and ret, and it return 0 on error, 1 on success. The function
is only called by vmx_set_tss_addr(), and ret is redundant.

This patch removes the redundant variable, by making init_rmode_tss()
return 0 on success, -errno on failure.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c