summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-06-23 00:51:05 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-06-23 00:51:05 +0000
commite31a2d6a35d497bcd86ecb5ec98a59853e876713 (patch)
treec9caabbf542bf16393caaea47d2c77619486e06a /sys/net
parent052dfa09a1a1897163534e475f4125cd8e42b596 (diff)
downloadFreeBSD-src-e31a2d6a35d497bcd86ecb5ec98a59853e876713.zip
FreeBSD-src-e31a2d6a35d497bcd86ecb5ec98a59853e876713.tar.gz
Remove an un-necessary call to microtime() to set if_lastchange
as it is set in the call to if_down in the line above
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tun.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index c74af18..3b0d98e 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -194,7 +194,6 @@ tunclose(dev_t dev, int foo, int bar, struct proc *p)
if (ifp->if_flags & IFF_UP) {
s = splimp();
if_down(ifp);
- microtime(&ifp->if_lastchange);
if (ifp->if_flags & IFF_RUNNING) {
/* find internet addresses and delete routes */
register struct ifaddr *ifa;
OpenPOWER on IntegriCloud