Author: trasz
Date: Sun Aug 31 21:46:32 2014
New Revision: 270896
URL: http://svnweb.freebsd.org/changeset/base/270896

Log:
  MFC r270210:
  
  Remove useless - and buggy, it resulted in spurious warnings in logs - code.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  stable/10/usr.sbin/autofs/autounmountd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/autofs/autounmountd.c
==============================================================================
--- stable/10/usr.sbin/autofs/autounmountd.c    Sun Aug 31 21:45:07 2014        
(r270895)
+++ stable/10/usr.sbin/autofs/autounmountd.c    Sun Aug 31 21:46:32 2014        
(r270896)
@@ -182,7 +182,6 @@ expire_automounted(double expiration_tim
        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_tim
                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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to