diff options
author | Francesco Cosoleto | 2011-09-15 16:17:46 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-27 15:04:23 +0200 |
commit | a03fd94b57abaa9211300088c454c0cb65a36786 (patch) | |
tree | 05a20b0b305fce3c25da08239cf492691185421e /libmount/src/context_mount.c | |
parent | lib,loopdev: fix use of logical '&&' with constant operand (diff) | |
download | kernel-qcow2-util-linux-a03fd94b57abaa9211300088c454c0cb65a36786.tar.gz kernel-qcow2-util-linux-a03fd94b57abaa9211300088c454c0cb65a36786.tar.xz kernel-qcow2-util-linux-a03fd94b57abaa9211300088c454c0cb65a36786.zip |
libmount: fix use of logical '&&' with constant operand
Found by clang.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r-- | libmount/src/context_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 7e75ad736..bcc4cdd12 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -125,7 +125,7 @@ static int fix_optstr(struct libmnt_context *cxt) goto done; } - if (!rc && cxt->user_mountflags && MNT_MS_USER) + if (!rc && cxt->user_mountflags & MNT_MS_USER) rc = mnt_optstr_fix_user(&fs->user_optstr); /* refresh merged optstr */ |