]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: Get rid of an unnecessary check
authorNamhyung Kim <namhyung@gmail.com>
Wed, 25 Sep 2013 15:32:03 +0000 (00:32 +0900)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Sep 2013 07:34:51 +0000 (09:34 +0200)
libmount_debug_mask was OR'ed to MNT_DEBUG_INIT so it should be non-null.
Thus the check is pointless.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
libmount/src/init.c

index d1b17f048958a4205bd27abe52923cd7cb4d68e8..a14637d7596c931b564ad509b644905c9472ea26 100644 (file)
@@ -40,7 +40,7 @@ void mnt_init_debug(int mask)
 
        libmount_debug_mask |= MNT_DEBUG_INIT;
 
-       if (libmount_debug_mask && libmount_debug_mask != MNT_DEBUG_INIT) {
+       if (libmount_debug_mask != MNT_DEBUG_INIT) {
                const char *ver = NULL;
                const char **features = NULL, **p;