Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Remove unnecessary splsoftnet
details: https://anonhg.NetBSD.org/src/rev/fbc4ca4280d1
branches: trunk
changeset: 357058:fbc4ca4280d1
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Oct 25 04:33:15 2017 +0000
description:
Remove unnecessary splsoftnet
diffstat:
sys/net/if_bridge.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (37 lines):
diff -r 53ca1b0fff38 -r fbc4ca4280d1 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Wed Oct 25 04:17:34 2017 +0000
+++ b/sys/net/if_bridge.c Wed Oct 25 04:33:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.137 2017/10/25 04:17:34 ozaki-r Exp $ */
+/* $NetBSD: if_bridge.c,v 1.138 2017/10/25 04:33:15 ozaki-r Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.137 2017/10/25 04:17:34 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.138 2017/10/25 04:33:15 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -465,9 +465,6 @@
{
struct bridge_softc *sc = ifp->if_softc;
struct bridge_iflist *bif;
- int s;
-
- s = splsoftnet();
bridge_stop(ifp, 1);
@@ -482,8 +479,6 @@
PSLIST_DESTROY(&sc->sc_iflist_psref.bip_iflist);
BRIDGE_UNLOCK(sc);
- splx(s);
-
if_detach(ifp);
/* Tear down the routing table. */
Home |
Main Index |
Thread Index |
Old Index