Skip to content

Commit

Permalink
KVM: PPC: e500: Delete an unnecessary initialisation in kvm_vcpu_ioct…
Browse files Browse the repository at this point in the history
…l_config_tlb()

The local variable "g2h_bitmap" will be set to an appropriate value
a bit later. Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
  • Loading branch information
Markus Elfring authored and Paul Mackerras committed Sep 12, 2016
1 parent 46d4e74 commit cfb6081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/e500_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu,
char *virt;
struct page **pages;
struct tlbe_priv *privs[2] = {};
u64 *g2h_bitmap = NULL;
u64 *g2h_bitmap;
size_t array_len;
u32 sets;
int num_pages, ret, i;
Expand Down

0 comments on commit cfb6081

Please sign in to comment.