Commit 284aa868 authored by Sean Christopherson's avatar Sean Christopherson Committed by Paolo Bonzini

KVM: x86/mmu: Remove superfluous gotos from mmu_topup_memory_caches()

Return errors directly from mmu_topup_memory_caches() instead of
branching to a label that does the same.

No functional change intended.
Reviewed-by: default avatarBen Gardon <bgardon@google.com>
Signed-off-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200703023545.8771-5-sean.j.christopherson@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 356ec69a
...@@ -1101,13 +1101,11 @@ static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) ...@@ -1101,13 +1101,11 @@ static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu)
r = mmu_topup_memory_cache(&vcpu->arch.mmu_pte_list_desc_cache, r = mmu_topup_memory_cache(&vcpu->arch.mmu_pte_list_desc_cache,
8 + PTE_PREFETCH_NUM); 8 + PTE_PREFETCH_NUM);
if (r) if (r)
goto out; return r;
r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_cache, 8); r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_cache, 8);
if (r) if (r)
goto out; return r;
r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_header_cache, 4); return mmu_topup_memory_cache(&vcpu->arch.mmu_page_header_cache, 4);
out:
return r;
} }
static void mmu_free_memory_caches(struct kvm_vcpu *vcpu) static void mmu_free_memory_caches(struct kvm_vcpu *vcpu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment