diff options
author | Paolo Bonzini | 2014-12-23 13:39:46 +0100 |
---|---|---|
committer | Paolo Bonzini | 2015-01-08 22:48:02 +0100 |
commit | e0c6db3e22f564d91832547a2432ab00f215108e (patch) | |
tree | 02a8d4f8954a63ef5cc55d5e6c765018d577d91f | |
parent | 6c19b7538f5ae2b6cdf91ab29f7fddf7320ece5b (diff) |
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>
-rw-r--r-- | arch/x86/kvm/mmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index f83fc6c5e0ba..8ddbcb570fce 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -3900,11 +3900,11 @@ static void init_kvm_nested_mmu(struct kvm_vcpu *vcpu) static void init_kvm_mmu(struct kvm_vcpu *vcpu) { if (mmu_is_nested(vcpu)) - return init_kvm_nested_mmu(vcpu); + init_kvm_nested_mmu(vcpu); else if (tdp_enabled) - return init_kvm_tdp_mmu(vcpu); + init_kvm_tdp_mmu(vcpu); else - return init_kvm_softmmu(vcpu); + init_kvm_softmmu(vcpu); } void kvm_mmu_reset_context(struct kvm_vcpu *vcpu) |