diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-03-12 09:20:24 (GMT) |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-03-12 11:25:56 (GMT) |
commit | 57f252f22908535e04d520f3833a6e3116eb159d (patch) | |
tree | 144fe55ee05d9334c3bea99581763630914ea463 /arch/x86/kvm/vmx.c | |
parent | 03ba32cae66e3798d697e582633af2c7dd6907e5 (diff) | |
download | linux-fsl-qoriq-57f252f22908535e04d520f3833a6e3116eb159d.tar.xz |
KVM: x86: Drop unused return code from VCPU reset callback
Neither vmx nor svm nor the common part may generate an error on
kvm_vcpu_reset. So drop the return code.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 473a5fe..f588171 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -4100,11 +4100,10 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx) return 0; } -static int vmx_vcpu_reset(struct kvm_vcpu *vcpu) +static void vmx_vcpu_reset(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); u64 msr; - int ret; vmx->rmode.vm86_active = 0; @@ -4195,10 +4194,6 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu) update_exception_bitmap(&vmx->vcpu); vpid_sync_context(vmx); - - ret = 0; - - return ret; } /* |