Commit aad9e5ba authored by Markus Elfring's avatar Markus Elfring Committed by Paul Mackerras

KVM: PPC: e500: Rename jump labels in kvmppc_e500_tlb_init()

Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent 90235dc1
...@@ -907,7 +907,7 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500) ...@@ -907,7 +907,7 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
struct kvm_vcpu *vcpu = &vcpu_e500->vcpu; struct kvm_vcpu *vcpu = &vcpu_e500->vcpu;
if (e500_mmu_host_init(vcpu_e500)) if (e500_mmu_host_init(vcpu_e500))
goto err; goto free_vcpu;
vcpu_e500->gtlb_params[0].entries = KVM_E500_TLB0_SIZE; vcpu_e500->gtlb_params[0].entries = KVM_E500_TLB0_SIZE;
vcpu_e500->gtlb_params[1].entries = KVM_E500_TLB1_SIZE; vcpu_e500->gtlb_params[1].entries = KVM_E500_TLB1_SIZE;
...@@ -933,26 +933,25 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500) ...@@ -933,26 +933,25 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
sizeof(struct tlbe_ref), sizeof(struct tlbe_ref),
GFP_KERNEL); GFP_KERNEL);
if (!vcpu_e500->gtlb_priv[0]) if (!vcpu_e500->gtlb_priv[0])
goto err; goto free_vcpu;
vcpu_e500->gtlb_priv[1] = kcalloc(vcpu_e500->gtlb_params[1].entries, vcpu_e500->gtlb_priv[1] = kcalloc(vcpu_e500->gtlb_params[1].entries,
sizeof(struct tlbe_ref), sizeof(struct tlbe_ref),
GFP_KERNEL); GFP_KERNEL);
if (!vcpu_e500->gtlb_priv[1]) if (!vcpu_e500->gtlb_priv[1])
goto err; goto free_vcpu;
vcpu_e500->g2h_tlb1_map = kcalloc(vcpu_e500->gtlb_params[1].entries, vcpu_e500->g2h_tlb1_map = kcalloc(vcpu_e500->gtlb_params[1].entries,
sizeof(*vcpu_e500->g2h_tlb1_map), sizeof(*vcpu_e500->g2h_tlb1_map),
GFP_KERNEL); GFP_KERNEL);
if (!vcpu_e500->g2h_tlb1_map) if (!vcpu_e500->g2h_tlb1_map)
goto err; goto free_vcpu;
vcpu_mmu_init(vcpu, vcpu_e500->gtlb_params); vcpu_mmu_init(vcpu, vcpu_e500->gtlb_params);
kvmppc_recalc_tlb1map_range(vcpu_e500); kvmppc_recalc_tlb1map_range(vcpu_e500);
return 0; return 0;
free_vcpu:
err:
free_gtlb(vcpu_e500); free_gtlb(vcpu_e500);
return -1; return -1;
} }
......
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