diff options
-rw-r--r-- | sys/net/bridgestp.c | 7 | ||||
-rw-r--r-- | sys/net/if_bridge.h | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index fa44377f90f..27e94daec79 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bridgestp.c,v 1.38 2010/10/31 15:14:30 mpf Exp $ */ +/* $OpenBSD: bridgestp.c,v 1.39 2010/11/20 14:23:09 fgsch Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -1958,18 +1958,13 @@ bstp_create(struct ifnet *ifp) void bstp_destroy(struct bstp_state *bs) { - int s; - if (bs == NULL) return; if (!LIST_EMPTY(&bs->bs_bplist)) panic("bstp still active"); - s = splnet(); - LIST_REMOVE(bs, bs_list); free(bs, M_DEVBUF); - splx(s); } void diff --git a/sys/net/if_bridge.h b/sys/net/if_bridge.h index 662bdfb4749..4d393b74ff3 100644 --- a/sys/net/if_bridge.h +++ b/sys/net/if_bridge.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.h,v 1.33 2010/10/31 15:14:30 mpf Exp $ */ +/* $OpenBSD: if_bridge.h,v 1.34 2010/11/20 14:23:09 fgsch Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -354,7 +354,6 @@ struct bstp_port { * Software state for each bridge STP. */ struct bstp_state { - LIST_ENTRY(bstp_state) bs_list; struct ifnet *bs_ifp; struct bstp_pri_vector bs_bridge_pv; struct bstp_pri_vector bs_root_pv; |