@@ -364,15 +364,12 @@ conf_parse_mntopts(char *section, char *arg, char *opts)
}
continue;
}
- if (argtype != MNT_NOARG) {
- snprintf(buf, BUFSIZ, "no%s", field);
- if (lookup_entry(buf) != NULL)
- continue;
- buf[0] = '\0';
- }
+ snprintf(buf, BUFSIZ, "no%s", field);
+ if (lookup_entry(buf) != NULL)
+ continue;
+ buf[0] = '\0';
if (strcasecmp(value, "false") == 0) {
- if (argtype != MNT_NOARG)
- snprintf(buf, BUFSIZ, "no%s", field);
+ snprintf(buf, BUFSIZ, "no%s", field);
} else if (strcasecmp(value, "true") == 0) {
snprintf(buf, BUFSIZ, "%s", field);
} else {
It's no longer necessary for conf_parse_mntopts to explicitly check for argtype != MNT_NOARG after calling should_add_noarg_opt(). Signed-off-by: Scott Mayhew <smayhew@redhat.com> --- utils/mount/configfile.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)