]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Make init_rmode_identity_map() return 0 on success.
authorTang Chen <tangchen@cn.fujitsu.com>
Tue, 16 Sep 2014 10:41:59 +0000 (18:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Sep 2014 11:10:12 +0000 (13:10 +0200)
commitfdd52d34c996fa92a2d0e9ff1568bf05849cd940
treebe1cceaafe499026b0c93d2617f9af64f2ed41f1
parentca3e3724881b1b042c81a10f1a5f5ce667e3d5ea
kvm: Make init_rmode_identity_map() return 0 on success.

In init_rmode_identity_map(), 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_create_vcpu(), and ret is redundant.

This patch removes the redundant variable, and makes init_rmode_identity_map()
return 0 on success, -errno on failure.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c