Skip to content

Commit a1f435f

Browse files
author
Missael Palacios
committed
Reverting change on ltfs_parse_options
1 parent cccf09e commit a1f435f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ int ltfs_parse_options(void *priv_data, const char *arg, int key, struct fuse_ar
382382
struct ltfs_fuse_data *priv = (struct ltfs_fuse_data *) priv_data;
383383
const char *fuse_options[] = { "-f", "-d", "-s", NULL };
384384
bool valid_fuse_option = false;
385-
int i, ret;
385+
int i;
386386

387387
switch(key) {
388388
case KEY_VERSION:
@@ -413,12 +413,8 @@ int ltfs_parse_options(void *priv_data, const char *arg, int key, struct fuse_ar
413413
default:
414414
if (! priv->first_parsing_pass) {
415415
fuse_opt_add_arg(outargs, "-h");
416-
if (priv->advanced_help){
416+
if (priv->advanced_help)
417417
ret = fuse_main(outargs->argc, outargs->argv, &ltfs_ops, NULL);
418-
if (ret != 0) {
419-
ltfsmsg(LTFS_WARN, 14123W, ret);
420-
}
421-
}
422418
usage(outargs->argv[0], priv);
423419
exit(key == KEY_HELP ? 0 : 1);
424420
}

0 commit comments

Comments
 (0)