diff options
author | Cédric Le Goater <clg@kaod.org> | 2021-08-19 14:56:54 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-08-20 22:17:41 +1000 |
commit | b352ddae7b2ccd2cb29f495ca0a7c9b6848b623f (patch) | |
tree | ca5fa664be77c1c1a250b2ec2abb8385e1162867 /arch/powerpc/kvm/book3s_64_mmu.c | |
parent | cb53a93e33e108bfec00a13cd12696e1c0ccc8b6 (diff) | |
download | linux-b352ddae7b2ccd2cb29f495ca0a7c9b6848b623f.tar.gz linux-b352ddae7b2ccd2cb29f495ca0a7c9b6848b623f.tar.bz2 linux-b352ddae7b2ccd2cb29f495ca0a7c9b6848b623f.zip |
KVM: PPC: Book3S PR: Remove unused variable
This fixes a compile error with W=1.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210819125656.14498-5-clg@kaod.org
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_mmu.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_64_mmu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c index 26b8b27a3755..feee40cb2ba1 100644 --- a/arch/powerpc/kvm/book3s_64_mmu.c +++ b/arch/powerpc/kvm/book3s_64_mmu.c @@ -196,7 +196,7 @@ static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, hva_t ptegp; u64 pteg[16]; u64 avpn = 0; - u64 v, r; + u64 r; u64 v_val, v_mask; u64 eaddr_mask; int i; @@ -285,7 +285,6 @@ do_second: goto do_second; } - v = be64_to_cpu(pteg[i]); r = be64_to_cpu(pteg[i+1]); pp = (r & HPTE_R_PP) | key; if (r & HPTE_R_PP0) |