]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: remove unused variable
authorKarel Zak <kzak@redhat.com>
Fri, 19 Aug 2022 08:28:24 +0000 (10:28 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:58:42 +0000 (12:58 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/mountP.h

index c1040021819aab47ae2d87784f14006b96f3724f..3bc0b5fa20c5efee558723baa0bd515438dfac8d 100644 (file)
@@ -163,7 +163,6 @@ int mnt_reset_context(struct libmnt_context *cxt)
        cxt->orig_user = NULL;
        cxt->mountflags = 0;
        cxt->user_mountflags = 0;
-       cxt->orig_mountflags = 0;
        cxt->mountdata = NULL;
        cxt->flags = MNT_FL_DEFAULT;
        cxt->noautofs = 1;
index ece89e9d0d3363f77770943b9aeb1794dcce5725..57a55a4733f4aba338e866ba22aa560c79cc781e 100644 (file)
@@ -383,7 +383,6 @@ struct libmnt_context
        const void      *mountdata;     /* final mount(2) data, string or binary data */
 
        unsigned long   user_mountflags;        /* MNT_MS_* (loop=, user=, ...) */
-       unsigned long   orig_mountflags;        /* original flags (see mnt_context_merge_mflags()) */
 
        struct libmnt_cache     *cache;         /* paths cache */
        struct libmnt_lock      *lock;          /* utab lock */