From: Karel Zak Date: Wed, 25 Apr 2012 07:05:24 +0000 (+0200) Subject: libmount: fix mnt_context_guess_fstype() X-Git-Tag: v2.22-rc1~485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54a3d5eeece68a4e99688739ba0261e7e40a7d12;p=thirdparty%2Futil-linux.git libmount: fix mnt_context_guess_fstype() Signed-off-by: Karel Zak --- diff --git a/libmount/src/context.c b/libmount/src/context.c index cb565fb0c7..2cdd6bba98 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1398,9 +1398,8 @@ int mnt_context_guess_fstype(struct libmnt_context *cxt) } done: - DBG(CXT, mnt_debug_h(cxt, "FS type: %s", - mnt_fs_get_fstype(cxt->fs))); - return 0; + DBG(CXT, mnt_debug_h(cxt, "FS type: %s", mnt_fs_get_fstype(cxt->fs))); + return rc; none: return mnt_fs_set_fstype(cxt->fs, "none"); }