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_loopdev.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_loopdev.c')
-rw-r--r-- | libmount/src/context_loopdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c index 6ed0df13e..992472e3d 100644 --- a/libmount/src/context_loopdev.c +++ b/libmount/src/context_loopdev.c @@ -52,7 +52,7 @@ int mnt_context_is_loopdev(struct libmnt_context *cxt) type = mnt_fs_get_fstype(cxt->fs); fl = __mnt_fs_get_flags(cxt->fs); - if (!(fl && (MNT_FS_PSEUDO | MNT_FS_NET | MNT_FS_SWAP)) && + if (!(fl & (MNT_FS_PSEUDO | MNT_FS_NET | MNT_FS_SWAP)) && (!type || strcmp(type, "auto") == 0 || blkid_known_fstype(type))) { struct stat st; |