autofs-5.1.2 - fix bogus check in expire_cleanup()

From: Ian Kent <raven@themaw.net>

ap->submount can never be 0 here.

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG      |    1 +
 daemon/state.c |    4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 9248bb9..eaff2de 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -47,6 +47,7 @@ xx/xx/2016 autofs-5.1.3
 - capture cache option and its settings during parsing.
 - handle map_option cache for top level mounts.
 - handle amd cache option all in amd type auto mounts.
+- fix bogus check in expire_cleanup().
 
 15/06/2016 autofs-5.1.2
 =======================
diff --git a/daemon/state.c b/daemon/state.c
index 5d81438..41a5f6a 100644
--- a/daemon/state.c
+++ b/daemon/state.c
@@ -139,9 +139,7 @@ void expire_cleanup(void *arg)
 					next = ST_SHUTDOWN_PENDING;
 					break;
 				}
-
-				if (ap->submount++ == 0)
-					ap->submount = 2;
+				ap->submount++;
 			}
 
 			if (ap->state == ST_EXPIRE && !ap->submount)
