From: Karel Zak Date: Wed, 9 Apr 2025 09:32:08 +0000 (+0200) Subject: libmount: (subdir) remove unused code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5462fa3435544344727b8644205ae427dfd5fcba;p=thirdparty%2Futil-linux.git libmount: (subdir) remove unused code The optlist already handles quoted values, so there's no need to do it in the callers. Signed-off-by: Karel Zak --- diff --git a/libmount/src/hook_subdir.c b/libmount/src/hook_subdir.c index 5949af7d8..1e5d79958 100644 --- a/libmount/src/hook_subdir.c +++ b/libmount/src/hook_subdir.c @@ -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;