diff options
author | trasz <trasz@FreeBSD.org> | 2014-08-20 13:54:27 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-08-20 13:54:27 +0000 |
commit | 944a288c8a655f05e1434e3e5d136a86e60a809b (patch) | |
tree | bc0b52f102fa74dab824db421115a3c5e618bb11 /usr.sbin | |
parent | e067fb3d980d7a8316740179d97bc261ca77da78 (diff) | |
download | FreeBSD-src-944a288c8a655f05e1434e3e5d136a86e60a809b.zip FreeBSD-src-944a288c8a655f05e1434e3e5d136a86e60a809b.tar.gz |
Remove useless - and buggy, it resulted in spurious warnings in logs - code.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/autofs/autounmountd.c | 12 |
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); } |