summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500_mmu.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-08-28 17:37:10 +0200
committerPaul Mackerras <paulus@ozlabs.org>2016-09-12 10:12:51 +1000
commitcfb60813fb8363a1681da2c10947e5f5b4165c47 (patch)
treee2d58718d102eb11ac2fe93f97aa98dcdda8d05d /arch/powerpc/kvm/e500_mmu.c
parent46d4e7479252d3fd82a0ea121daef75164a91939 (diff)
downloadtalos-obmc-linux-cfb60813fb8363a1681da2c10947e5f5b4165c47.tar.gz
talos-obmc-linux-cfb60813fb8363a1681da2c10947e5f5b4165c47.zip
KVM: PPC: e500: Delete an unnecessary initialisation in kvm_vcpu_ioctl_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>
Diffstat (limited to 'arch/powerpc/kvm/e500_mmu.c')
-rw-r--r--arch/powerpc/kvm/e500_mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch/powerpc/kvm/e500_mmu.c
index b65a894b0d64..e9c19e9ca021 100644
--- a/arch/powerpc/kvm/e500_mmu.c
+++ b/arch/powerpc/kvm/e500_mmu.c
@@ -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;
OpenPOWER on IntegriCloud