Blame SOURCES/autofs-5.1.7-remove-redundant-if-check.patch

29d2b9
autofs-5.1.7 - remove redundant if check
29d2b9
29d2b9
From: Ian Kent <raven@themaw.net>
29d2b9
29d2b9
Coverity: identical code in if condition branches.
29d2b9
29d2b9
Signed-off-by: Ian Kent <raven@themaw.net>
29d2b9
---
29d2b9
 CHANGELOG       |    1 +
29d2b9
 daemon/direct.c |    5 +----
29d2b9
 2 files changed, 2 insertions(+), 4 deletions(-)
29d2b9
29d2b9
diff --git a/CHANGELOG b/CHANGELOG
29d2b9
index 62a918a9..2186cbe3 100644
29d2b9
--- a/CHANGELOG
29d2b9
+++ b/CHANGELOG
29d2b9
@@ -51,6 +51,7 @@
29d2b9
 - remove mounts_mutex.
29d2b9
 - remove unused variable from get_exports().
29d2b9
 - add missing free in handle_mounts().
29d2b9
+- remove redundant if check.
29d2b9
 
29d2b9
 25/01/2021 autofs-5.1.7
29d2b9
 - make bind mounts propagation slave by default.
29d2b9
diff --git a/daemon/direct.c b/daemon/direct.c
29d2b9
index 3f4f5704..a33f9f91 100644
29d2b9
--- a/daemon/direct.c
29d2b9
+++ b/daemon/direct.c
29d2b9
@@ -752,10 +752,7 @@ int mount_autofs_offset(struct autofs_point *ap, struct mapent *me)
29d2b9
 
29d2b9
 	ops->timeout(ap->logopt, ioctlfd, timeout);
29d2b9
 	cache_set_ino_index(me->mc, me->key, st.st_dev, st.st_ino);
29d2b9
-	if (ap->logopt & LOGOPT_DEBUG)
29d2b9
-		notify_mount_result(ap, me->key, timeout, str_offset);
29d2b9
-	else
29d2b9
-		notify_mount_result(ap, me->key, timeout, str_offset);
29d2b9
+	notify_mount_result(ap, me->key, timeout, str_offset);
29d2b9
 	ops->close(ap->logopt, ioctlfd);
29d2b9
 
29d2b9
 	debug(ap->logopt, "mounted trigger %s", me->key);