git: 8a46fc9a9bdc - main - armv7_allocate_pmc: remove write only variable pac

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:18 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a46fc9a9bdc18bc559ddae155cedcdcc1365c46

commit 8a46fc9a9bdc18bc559ddae155cedcdcc1365c46
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 01:34:12 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:34 +0000

    armv7_allocate_pmc: remove write only variable pac
    
    Sponsored by:           Netflix
---
 sys/dev/hwpmc/hwpmc_armv7.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/dev/hwpmc/hwpmc_armv7.c b/sys/dev/hwpmc/hwpmc_armv7.c
index 090e4523102d..95ac9a56abb7 100644
--- a/sys/dev/hwpmc/hwpmc_armv7.c
+++ b/sys/dev/hwpmc/hwpmc_armv7.c
@@ -138,7 +138,6 @@ static int
 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm,
   const struct pmc_op_pmcallocate *a)
 {
-	struct armv7_cpu *pac;
 	enum pmc_event pe;
 	uint32_t config;
 
@@ -147,8 +146,6 @@ armv7_allocate_pmc(int cpu, int ri, struct pmc *pm,
 	KASSERT(ri >= 0 && ri < armv7_npmcs,
 	    ("[armv7,%d] illegal row index %d", __LINE__, ri));
 
-	pac = armv7_pcpu[cpu];
-
 	if (a->pm_class != PMC_CLASS_ARMV7)
 		return (EINVAL);
 	pe = a->pm_ev;
@@ -334,7 +331,6 @@ armv7_release_pmc(int cpu, int ri, struct pmc *pmc)
 static int
 armv7_intr(struct trapframe *tf)
 {
-	struct armv7_cpu *pc;
 	int retval, ri;
 	struct pmc *pm;
 	int error;
@@ -345,7 +341,6 @@ armv7_intr(struct trapframe *tf)
 	    ("[armv7,%d] CPU %d out of range", __LINE__, cpu));
 
 	retval = 0;
-	pc = armv7_pcpu[cpu];
 
 	for (ri = 0; ri < armv7_npmcs; ri++) {
 		pm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc;