summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscf <scf@FreeBSD.org>2009-03-17 02:32:36 +0000
committerscf <scf@FreeBSD.org>2009-03-17 02:32:36 +0000
commita32f83a4578b60fc5d9c0d96e05e6307441f514c (patch)
tree9ff435d3d09b35003b0abdf67d4344a75af380db
parent152e3d301d04fa2aa6bf7600705f0170d2ba27c0 (diff)
downloadFreeBSD-src-a32f83a4578b60fc5d9c0d96e05e6307441f514c.zip
FreeBSD-src-a32f83a4578b60fc5d9c0d96e05e6307441f514c.tar.gz
Remove the splimp()/splx() calls around the setting of the MTU. They are
no-op's that I inadvertently added. Even if locking is needed in general for the ioctl's, setting a single long will not need it due to the operation being atomic. Reported by: rwatson
-rw-r--r--sys/net/if_tap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index 99c5968..9256301 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -611,9 +611,7 @@ tapifioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
case SIOCSIFMTU:
- s = splimp();
ifp->if_mtu = ifr->ifr_mtu;
- splx(s);
break;
case SIOCGIFSTATUS:
OpenPOWER on IntegriCloud