git: a20a02abcdc9 - main - pmc: remove write-only variable

From: Pawel Biernacki <kaktus_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 21:03:01 UTC
The branch main has been updated by kaktus:

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

commit a20a02abcdc99b39d9d8edb56d6b546ea7f757cf
Author:     Pawel Biernacki <kaktus@FreeBSD.org>
AuthorDate: 2022-10-19 20:59:23 +0000
Commit:     Pawel Biernacki <kaktus@FreeBSD.org>
CommitDate: 2022-10-19 20:59:23 +0000

    pmc: remove write-only variable
---
 usr.sbin/pmc/cmd_pmc_filter.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr.sbin/pmc/cmd_pmc_filter.cc b/usr.sbin/pmc/cmd_pmc_filter.cc
index 07027cb272f9..7f2fae6d208b 100644
--- a/usr.sbin/pmc/cmd_pmc_filter.cc
+++ b/usr.sbin/pmc/cmd_pmc_filter.cc
@@ -208,7 +208,7 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco
 	char cpuid[PMC_CPUID_LEN];
 	char *proclist[LIST_MAX];
 	char *threadlist[LIST_MAX];
-	int i, pmccount, copies, eventcount;
+	int i, pmccount, eventcount;
 	int proccount, threadcount;
 	uint32_t idx;
 	idmap pidmap, tidmap;
@@ -247,7 +247,6 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco
 	pmclog_close(ps);
 	if ((ps = static_cast < struct pmclog_parse_state *>(pmclog_open(infd)))== NULL)
 		errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno));
-	copies = 0;
 	while (pmclog_read(ps, &ev) == 0) {
 		if (ev.pl_type == PMCLOG_TYPE_THR_CREATE)
 			tidmap[ev.pl_u.pl_tc.pl_tid] = ev.pl_u.pl_tc.pl_tdname;