]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: (subdir) remove unused code
authorKarel Zak <kzak@redhat.com>
Wed, 9 Apr 2025 09:32:08 +0000 (11:32 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Apr 2025 09:34:00 +0000 (11:34 +0200)
The optlist already handles quoted values, so there's no need to do it
in the callers.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_subdir.c

index 5949af7d8246c00c3120a10254cf43521398d4fd..1e5d79958a5cfe5d3b082689f050cd8e94380d3a 100644 (file)
@@ -329,9 +329,6 @@ static int is_subdir_required(struct libmnt_context *cxt, int *rc, char **subdir
 
        dir = mnt_opt_get_value(opt);
 
-       if (dir && *dir == '"')
-               dir++;
-
        if (!dir || !*dir) {
                DBG(HOOK, ul_debug("failed to parse X-mount.subdir '%s'", dir));
                *rc = -MNT_ERR_MOUNTOPT;