diff options
author | наб <[email protected]> | 2022-04-07 04:25:05 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-04-13 11:36:29 -0700 |
commit | 63cb3413ea702818d421e0bbee583c9749a296af (patch) | |
tree | 65adb73597c814c85054bc49f06d70efb682c7c9 /tests | |
parent | 4620342a32bb616fd45f0b6af07deb31b8b38ee0 (diff) |
tests: cmd: draid: remove unused and undocumented -v
Found with -Wunused-but-set-variable on Clang trunk
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13304
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zfs-tests/cmd/draid.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/zfs-tests/cmd/draid.c b/tests/zfs-tests/cmd/draid.c index 6f4ecd5ef..618cb9c4d 100644 --- a/tests/zfs-tests/cmd/draid.c +++ b/tests/zfs-tests/cmd/draid.c @@ -1312,14 +1312,11 @@ static int draid_merge(int argc, char *argv[]) { char filename[MAXPATHLEN] = {0}; - int c, error, total_merged = 0, verbose = 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); |