From 372d410d9e2ffd300cc7e264646c6cdd70e022a6 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 Jun 2016 13:55:27 +0200 Subject: libmount: don't check nonnull attributes for NULL [-Wnonnull-compare] Signed-off-by: Karel Zak --- libmount/src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/context.c') 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; } /** -- cgit v1.2.3-55-g7522