KVM: x86: mmu: do not use return to tail-call functions that return void

This is, pedantically, not valid C.  It also looks weird.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2014-12-23 13:39:46 +01:00
parent 6c19b7538f
commit e0c6db3e22
1 changed files with 3 additions and 3 deletions

View File

@ -3900,11 +3900,11 @@ static void init_kvm_nested_mmu(struct kvm_vcpu *vcpu)
static void init_kvm_mmu(struct kvm_vcpu *vcpu) static void init_kvm_mmu(struct kvm_vcpu *vcpu)
{ {
if (mmu_is_nested(vcpu)) if (mmu_is_nested(vcpu))
return init_kvm_nested_mmu(vcpu); init_kvm_nested_mmu(vcpu);
else if (tdp_enabled) else if (tdp_enabled)
return init_kvm_tdp_mmu(vcpu); init_kvm_tdp_mmu(vcpu);
else else
return init_kvm_softmmu(vcpu); init_kvm_softmmu(vcpu);
} }
void kvm_mmu_reset_context(struct kvm_vcpu *vcpu) void kvm_mmu_reset_context(struct kvm_vcpu *vcpu)