]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: PPC: Book3S PR: Remove unused variable
authorCédric Le Goater <clg@kaod.org>
Thu, 19 Aug 2021 12:56:54 +0000 (14:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Aug 2021 12:17:41 +0000 (22:17 +1000)
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
arch/powerpc/kvm/book3s_64_mmu.c

index 26b8b27a375571c640f37ef518774737f60562a3..feee40cb2ba1b3ff9cf32241656543c06119748a 100644 (file)
@@ -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)