projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c19b75
)
KVM: x86: mmu: do not use return to tail-call functions that return void
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 23 Dec 2014 12:39:46 +0000
(13:39 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 8 Jan 2015 21:48:02 +0000
(22:48 +0100)
This is, pedantically, not valid C. It also looks weird.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index f83fc6c5e0bad6712e9f172acaba931c47cd32cd..8ddbcb570fce3e1dc98fa8e8c81615e0c5fc4859 100644
(file)
--- 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)