summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2016-01-14 09:20:31 +0000
committermpi <mpi@openbsd.org>2016-01-14 09:20:31 +0000
commite8f34656c83e80b4c8586820681f3f17c27e975c (patch)
tree9e4b7fbbcc6584fa5b332195c2dbe49e152a7221 /sys/net/if_mpe.c
parentDisplay struct event more like other structs: show all members and use cpp (diff)
downloadwireguard-openbsd-e8f34656c83e80b4c8586820681f3f17c27e975c.tar.xz
wireguard-openbsd-e8f34656c83e80b4c8586820681f3f17c27e975c.zip
No need for a splnet() dance around IFQ_DEQUEUE() anymore.
From David Hill, ok dlg@
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index ac06d06fd8b..10cbe545f95 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.52 2015/12/05 10:07:55 tedu Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.53 2016/01/14 09:20:31 mpi Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -143,16 +143,12 @@ mpestart(struct ifnet *ifp0)
{
struct mbuf *m;
struct sockaddr *sa = (struct sockaddr *)&mpedst;
- int s;
sa_family_t af;
struct rtentry *rt;
struct ifnet *ifp;
for (;;) {
- s = splnet();
IFQ_DEQUEUE(&ifp0->if_snd, m);
- splx(s);
-
if (m == NULL)
return;