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