diff options
author | Karel Zak | 2012-04-25 09:05:24 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-25 09:05:24 +0200 |
commit | 54a3d5eeece68a4e99688739ba0261e7e40a7d12 (patch) | |
tree | 9fd36840bc2b2004c19e8e175265a9e8021a650e /libmount/src/context.c | |
parent | mount: (new) use MNT_ERR_ for error messages (diff) | |
download | kernel-qcow2-util-linux-54a3d5eeece68a4e99688739ba0261e7e40a7d12.tar.gz kernel-qcow2-util-linux-54a3d5eeece68a4e99688739ba0261e7e40a7d12.tar.xz kernel-qcow2-util-linux-54a3d5eeece68a4e99688739ba0261e7e40a7d12.zip |
libmount: fix mnt_context_guess_fstype()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r-- | libmount/src/context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index cb565fb0c..2cdd6bba9 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"); } |