git: 8b1f5965d9a5 - main - procstat: remove set but not used variable

From: Piotr Pawel Stefaniak <pstef_at_FreeBSD.org>
Date: Fri, 18 Mar 2022 09:04:24 UTC
The branch main has been updated by pstef:

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

commit 8b1f5965d9a55a93517c4366f3e1f22166c1aff6
Author:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2022-03-17 21:53:00 +0000
Commit:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
CommitDate: 2022-03-18 09:03:56 +0000

    procstat: remove set but not used variable
    
    In an earlier version of D26310, strcmp was strncmp.
---
 usr.bin/procstat/procstat.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr.bin/procstat/procstat.c b/usr.bin/procstat/procstat.c
index a1cd082ecb5a..bb3b9e9de5a8 100644
--- a/usr.bin/procstat/procstat.c
+++ b/usr.bin/procstat/procstat.c
@@ -236,11 +236,10 @@ static const struct procstat_cmd *
 getcmdbyprogname(const char *pprogname)
 {
 	const char *ca;
-	size_t i, len;
+	size_t i;
 
 	if (pprogname == NULL)
 		return (NULL);
-	len = strlen(pprogname);
 
 	for (i = 0; i < nitems(pacmd_table); i++) {
 		ca = pacmd_table[i].command;