[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <de7ae31f88510a6b04f29fc01ab44854@208suo.com>
Date: Wed, 14 Jun 2023 10:34:45 +0800
From: baomingtong001@...suo.com
To: mpe@...erman.id.au, npiggin@...il.com, christophe.leroy@...roup.eu,
pbonzini@...hat.com, paulus@...abs.org, seanjc@...gle.com,
thuth@...hat.com
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: [PATCH] KVM: PPC: remove unneeded variable
fix the following coccicheck warning:
arch/powerpc/kvm/book3s_pr.c:424:5-6: Unneeded variable: "r".
Signed-off-by: Mingtong Bao <baomingtong001@...suo.com>
---
arch/powerpc/kvm/book3s_pr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index 9118242063fb..d03b31b240d7 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -421,14 +421,14 @@ void kvmppc_restore_tm_pr(struct kvm_vcpu *vcpu)
static int kvmppc_core_check_requests_pr(struct kvm_vcpu *vcpu)
{
- int r = 1; /* Indicate we want to get back into the guest */
+ /* Indicate we want to get back into the guest */
/* We misuse TLB_FLUSH to indicate that we want to clear
all shadow cache entries */
if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
kvmppc_mmu_pte_flush(vcpu, 0, 0);
- return r;
+ return 1;
}
/************* MMU Notifiers *************/
Powered by blists - more mailing lists