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

beb904
autofs-5.1.7 - remove redundant if check
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
Coverity: identical code in if condition branches.
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG       |    1 +
beb904
 daemon/direct.c |    5 +----
beb904
 2 files changed, 2 insertions(+), 4 deletions(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -51,6 +51,7 @@
beb904
 - remove mounts_mutex.
beb904
 - remove unused variable from get_exports().
beb904
 - add missing free in handle_mounts().
beb904
+- remove redundant if check.
beb904
 
beb904
 xx/xx/2018 autofs-5.1.5
beb904
 - fix flag file permission.
beb904
--- autofs-5.1.4.orig/daemon/direct.c
beb904
+++ autofs-5.1.4/daemon/direct.c
beb904
@@ -752,10 +752,7 @@ int mount_autofs_offset(struct autofs_po
beb904
 
beb904
 	ops->timeout(ap->logopt, ioctlfd, timeout);
beb904
 	cache_set_ino_index(me->mc, me->key, st.st_dev, st.st_ino);
beb904
-	if (ap->logopt & LOGOPT_DEBUG)
beb904
-		notify_mount_result(ap, me->key, timeout, str_offset);
beb904
-	else
beb904
-		notify_mount_result(ap, me->key, timeout, str_offset);
beb904
+	notify_mount_result(ap, me->key, timeout, str_offset);
beb904
 	ops->close(ap->logopt, ioctlfd);
beb904
 
beb904
 	debug(ap->logopt, "mounted trigger %s", me->key);