From 1049c4a2f10a9ed4127c7bc0485faa53ea28abac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 24 Dec 2023 12:44:35 +0100 Subject: [PATCH] libmount: (context) avoid dead store MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- libmount/src/context.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.47.3