summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2012-01-25 17:04:03 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2012-01-25 17:04:03 +0000
commit1db851788dc7d088c5cf04a5437a855ed23473f0 (patch)
treeb8d94086342c84bc6e8aeda29d82cca3cad9dcb0 /sys/net80211/ieee80211_node.c
parentd98f0291e29639b07fe729b57bdd760c9d0e822b (diff)
There is no need to explicitly skip ic_bss when iterating over cached nodes.
The ic_bss is never put into the RB tree.
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 93757ee496f..bd046583c17 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.67 2012/01/25 17:03:31 stsp Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.68 2012/01/25 17:04:02 stsp Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -113,8 +113,6 @@ ieee80211_inact_timeout(void *arg)
for (ni = RB_MIN(ieee80211_tree, &ic->ic_tree);
ni != NULL; ni = next_ni) {
next_ni = RB_NEXT(ieee80211_tree, &ic->ic_tree, ni);
- if (ni == ic->ic_bss)
- continue;
if (ni->ni_refcnt > 0)
continue;
if (ni->ni_inact < IEEE80211_INACT_MAX)