From: Paolo Bonzini Date: Tue, 23 Dec 2014 12:39:46 +0000 (+0100) Subject: KVM: x86: mmu: do not use return to tail-call functions that return void X-Git-Tag: v4.14-rc1~5952^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0c6db3e22f564d91832547a2432ab00f215108e;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index f83fc6c..8ddbcb5 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)