From: Miklos Szeredi Date: Wed, 30 Mar 2011 17:34:58 +0000 (+0200) Subject: fusermount: clean up do_mount() function X-Git-Tag: fuse_2_9_0~57 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e63a9d8ee6529c9d15a87745276f45c9bdad3961;p=qemu-gpiodev%2Flibfuse.git fusermount: clean up do_mount() function --- diff --git a/util/fusermount.c b/util/fusermount.c index fc2d0dd..c37e57b 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -845,15 +845,14 @@ static int do_mount(const char *mnt, char **typep, mode_t rootmode, fprintf(stderr, "%s: mount failed: %s\n", progname, strerror(errno_save)); goto err; - } else { - *sourcep = source; - *typep = type; - *mnt_optsp = mnt_opts; } + *sourcep = source; + *typep = type; + *mnt_optsp = mnt_opts; free(fsname); free(optbuf); - return res; + return 0; err: free(fsname);