From ce4b2e2c63902ecb0d293c2afd4020a656d25aa1 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Sat, 19 Mar 2011 19:37:53 +0000 Subject: [PATCH] Remove spl(9) remnants. --- sys/netgraph/ng_iface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index 03ad016c2ab..6e3c39d8191 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -286,12 +286,11 @@ static int ng_iface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) { struct ifreq *const ifr = (struct ifreq *) data; - int s, error = 0; + int error = 0; #ifdef DEBUG ng_iface_print_ioctl(ifp, command, data); #endif - s = splimp(); switch (command) { /* These two are mostly handled at a higher layer */ @@ -343,7 +342,6 @@ ng_iface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) error = EINVAL; break; } - (void) splx(s); return (error); }