summaryrefslogtreecommitdiffstats
path: root/libmount/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2016-06-14 13:55:27 +0200
committerKarel Zak2016-06-14 13:55:27 +0200
commit372d410d9e2ffd300cc7e264646c6cdd70e022a6 (patch)
tree791bef894c1762b94276533298b8afa8ef809441 /libmount/src/context.c
parentchfn: chsh: use selinux_check_passwd_access() (diff)
downloadkernel-qcow2-util-linux-372d410d9e2ffd300cc7e264646c6cdd70e022a6.tar.gz
kernel-qcow2-util-linux-372d410d9e2ffd300cc7e264646c6cdd70e022a6.tar.xz
kernel-qcow2-util-linux-372d410d9e2ffd300cc7e264646c6cdd70e022a6.zip
libmount: don't check nonnull attributes for NULL [-Wnonnull-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r--libmount/src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c
index c53a63954..87ccccfc6 100644
--- a/libmount/src/context.c
+++ b/libmount/src/context.c
@@ -369,7 +369,7 @@ int mnt_context_disable_canonicalize(struct libmnt_context *cxt, int disable)
*/
int mnt_context_is_nocanonicalize(struct libmnt_context *cxt)
{
- return cxt && (cxt->flags & MNT_FL_NOCANONICALIZE) ? 1 : 0;
+ return cxt->flags & MNT_FL_NOCANONICALIZE ? 1 : 0;
}
/**