git: 9a55543f8eb5 - main - mt: Remove a set but unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 19:39:11 UTC
The branch main has been updated by jhb:

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

commit 9a55543f8eb5d40120b06bf806d60efbc0ceee5b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 19:32:18 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-20 19:32:18 +0000

    mt: Remove a set but unused variable.
    
    The variable is unused because the -v (verbose) flag to
    'mt getdensity' is a no-op.
    
    Reported by:    GCC
    Reviewed by:    ken
    Differential Revision:  https://reviews.freebsd.org/D40653
---
 usr.bin/mt/mt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c
index a053cdd92132..89b86a6c1d3b 100644
--- a/usr.bin/mt/mt.c
+++ b/usr.bin/mt/mt.c
@@ -1555,14 +1555,14 @@ mt_getdensity(int argc, char **argv, char *xml_str,
     struct mt_status_data *status_data)
 {
 	int retval = 0;
-	int verbose = 0, xml_dump = 0;
+	int xml_dump = 0;
 	struct mt_status_entry *density_root = NULL;
 	int c;
 
 	while ((c = getopt(argc, argv, "vx")) != -1) {
 		switch (c) {
 		case 'v':
-			verbose = 1;
+			/* Ignore. */
 			break;
 		case 'x':
 			xml_dump = 1;