From: Thomas Weißschuh Date: Sun, 24 Dec 2023 11:44:35 +0000 (+0100) Subject: libmount: (context) avoid dead store X-Git-Tag: v2.40-rc1~84^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1049c4a2f10a9ed4127c7bc0485faa53ea28abac;p=thirdparty%2Futil-linux.git libmount: (context) avoid dead store Signed-off-by: Thomas Weißschuh --- diff --git a/libmount/src/context.c b/libmount/src/context.c index be216708f9..6db71f4e47 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -3411,10 +3411,8 @@ static int test_mountall(struct libmnt_test *ts __attribute__((unused)), mnt_context_set_options_pattern(cxt, argv[idx + 1]); idx += 2; } - if (argv[idx] && !strcmp(argv[idx], "-t")) { + if (argv[idx] && !strcmp(argv[idx], "-t")) mnt_context_set_fstype_pattern(cxt, argv[idx + 1]); - idx += 2; - } } while (mnt_context_next_mount(cxt, itr, &fs, &mntrc, &ignored) == 0) {