git: c38d2d1811bf - stable/13 - procstat: remove set but not used variable

From: Piotr Pawel Stefaniak <pstef_at_FreeBSD.org>
Date: Tue, 22 Mar 2022 18:53:53 UTC
The branch stable/13 has been updated by pstef:

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

commit c38d2d1811bfe50cef7be74d78b16034ef1deff8
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-22 17:36:16 +0000

    procstat: remove set but not used variable
    
    In an earlier version of D26310, strcmp was strncmp.
    
    (cherry picked from commit 8b1f5965d9a55a93517c4366f3e1f22166c1aff6)
---
 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;