From a5b1a8553c1ed85f2b3ae1a4ddb1a9b4b232e024 Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Tue, 17 Mar 2009 02:32:36 +0000 Subject: [PATCH] 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 --- sys/net/if_tap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index 99c5968e324..92563012c28 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: