Found by clang. Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx> --- libmount/src/context_loopdev.c | 2 +- libmount/src/context_mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c index 6ed0df1..992472e 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; diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 7e75ad7..bcc4cdd 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 */ -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html