tests: cmd: draid: remove unused and undocumented -v

Found with -Wunused-but-set-variable on Clang trunk

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13304
This commit is contained in:
наб 2022-04-07 04:25:05 +02:00 committed by Tony Hutter
parent ad0379bf0e
commit 670d66e7a0
1 changed files with 2 additions and 5 deletions

View File

@ -1318,14 +1318,11 @@ static int
draid_merge(int argc, char *argv[]) draid_merge(int argc, char *argv[])
{ {
char filename[MAXPATHLEN]; char filename[MAXPATHLEN];
int c, error, total_merged = 0, verbose = 0; int c, error, total_merged = 0;
nvlist_t *allcfgs; nvlist_t *allcfgs;
while ((c = getopt(argc, argv, ":v")) != -1) { while ((c = getopt(argc, argv, ":")) != -1) {
switch (c) { switch (c) {
case 'v':
verbose++;
break;
case ':': case ':':
(void) fprintf(stderr, (void) fprintf(stderr,
"missing argument for '%c' option\n", optopt); "missing argument for '%c' option\n", optopt);