summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-08-31 21:46:32 +0000
committertrasz <trasz@FreeBSD.org>2014-08-31 21:46:32 +0000
commitee274d2353e842a754023081f1ac838fe65db7df (patch)
tree0ec243a36c07a368f6eb2a94c78105bff71c8ea6 /usr.sbin/autofs
parent2f448226ce983f3943ddd580360f6f3235aebc19 (diff)
downloadFreeBSD-src-ee274d2353e842a754023081f1ac838fe65db7df.zip
FreeBSD-src-ee274d2353e842a754023081f1ac838fe65db7df.tar.gz
MFC r270210:
Remove useless - and buggy, it resulted in spurious warnings in logs - code. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/autofs')
-rw-r--r--usr.sbin/autofs/autounmountd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/usr.sbin/autofs/autounmountd.c b/usr.sbin/autofs/autounmountd.c
index 4ec24f7..1bab910 100644
--- a/usr.sbin/autofs/autounmountd.c
+++ b/usr.sbin/autofs/autounmountd.c
@@ -182,7 +182,6 @@ expire_automounted(double expiration_time)
time_t now;
double mounted_for, mounted_max = 0;
int error;
- bool unmounted = false;
now = time(NULL);
@@ -211,20 +210,9 @@ expire_automounted(double expiration_time)
if (error != 0) {
if (mounted_for > mounted_max)
mounted_max = mounted_for;
- } else {
- unmounted = true;
}
}
- if (unmounted) {
- /*
- * Successful unmount of a filesystem could unbusy its parent
- * filesystem that can now be unmounted.
- */
- log_debugx("filesystem got unmounted; go around");
- return (expire_automounted(expiration_time));
- }
-
return (mounted_max);
}
OpenPOWER on IntegriCloud