aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_tap.c
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2009-03-17 02:32:36 +0000
committerSean Farley <scf@FreeBSD.org>2009-03-17 02:32:36 +0000
commita5b1a8553c1ed85f2b3ae1a4ddb1a9b4b232e024 (patch)
tree9ff435d3d09b35003b0abdf67d4344a75af380db /sys/net/if_tap.c
parent7214348f57d62e2a206a349ff1351991e253e416 (diff)
downloadsrc-a5b1a8553c1ed85f2b3ae1a4ddb1a9b4b232e024.tar.gz
src-a5b1a8553c1ed85f2b3ae1a4ddb1a9b4b232e024.zip
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
Notes
Notes: svn path=/head/; revision=189907
Diffstat (limited to 'sys/net/if_tap.c')
-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 99c5968e3247..92563012c28d 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: