From 1b44c55aff66c84dffc80e8ead2531f957d3eb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 7 Apr 2022 04:25:05 +0200 Subject: [PATCH] tests: cmd: draid: remove unused and undocumented -v MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found with -Wunused-but-set-variable on Clang trunk Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13304 (cherry picked from commit 63cb3413ea702818d421e0bbee583c9749a296af) --- tests/zfs-tests/cmd/draid/draid.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/zfs-tests/cmd/draid/draid.c b/tests/zfs-tests/cmd/draid/draid.c index 57261348b3cd..f7d2428e7911 100644 --- a/tests/zfs-tests/cmd/draid/draid.c +++ b/tests/zfs-tests/cmd/draid/draid.c @@ -1317,15 +1317,12 @@ draid_merge_impl(nvlist_t *allcfgs, const char *srcfilename, int *mergedp) static int draid_merge(int argc, char *argv[]) { - char filename[MAXPATHLEN]; - int c, error, total_merged = 0, verbose = 0; + char filename[MAXPATHLEN] = {0}; + int c, error, total_merged = 0; nvlist_t *allcfgs; - while ((c = getopt(argc, argv, ":v")) != -1) { + while ((c = getopt(argc, argv, ":")) != -1) { switch (c) { - case 'v': - verbose++; - break; case ':': (void) fprintf(stderr, "missing argument for '%c' option\n", optopt);