procstat: remove set but not used variable

In an earlier version of D26310, strcmp was strncmp.
This commit is contained in:
Piotr Pawel Stefaniak 2022-03-17 22:53:00 +01:00
parent fde687c239
commit 8b1f5965d9

View File

@ -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;