Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Remove unused global bridge list
details: https://anonhg.NetBSD.org/src/rev/57f03b509d23
branches: trunk
changeset: 344425:57f03b509d23
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Mar 28 04:38:04 2016 +0000
description:
Remove unused global bridge list
Pointed out by riastradh@
diffstat:
sys/net/if_bridge.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diffs (59 lines):
diff -r 6193d0d70b68 -r 57f03b509d23 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Mon Mar 28 02:35:43 2016 +0000
+++ b/sys/net/if_bridge.c Mon Mar 28 04:38:04 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.110 2016/03/23 05:44:01 ozaki-r Exp $ */
+/* $NetBSD: if_bridge.c,v 1.111 2016/03/28 04:38:04 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.110 2016/03/23 05:44:01 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.111 2016/03/28 04:38:04 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -341,9 +341,6 @@
static const int bridge_control_table_size = __arraycount(bridge_control_table);
-static LIST_HEAD(, bridge_softc) bridge_list;
-static kmutex_t bridge_list_lock;
-
static struct if_clone bridge_cloner =
IF_CLONE_INITIALIZER("bridge", bridge_clone_create, bridge_clone_destroy);
@@ -359,8 +356,6 @@
pool_init(&bridge_rtnode_pool, sizeof(struct bridge_rtnode),
0, 0, 0, "brtpl", NULL, IPL_NET);
- LIST_INIT(&bridge_list);
- mutex_init(&bridge_list_lock, MUTEX_DEFAULT, IPL_NET);
if_clone_attach(&bridge_cloner);
}
@@ -432,10 +427,6 @@
if_alloc_sadl(ifp);
- mutex_enter(&bridge_list_lock);
- LIST_INSERT_HEAD(&bridge_list, sc, sc_list);
- mutex_exit(&bridge_list_lock);
-
return (0);
}
@@ -460,10 +451,6 @@
bridge_delete_member(sc, bif);
BRIDGE_UNLOCK(sc);
- mutex_enter(&bridge_list_lock);
- LIST_REMOVE(sc, sc_list);
- mutex_exit(&bridge_list_lock);
-
splx(s);
if_detach(ifp);
Home |
Main Index |
Thread Index |
Old Index