diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-09-20 17:21:14 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-09-20 17:21:14 +0000 |
commit | 47c8225f079878d1f3c7d53321e426e45b6e599b (patch) | |
tree | 0b2ae0ded0ed100debc8b2e93e067cac5734a895 | |
parent | c949b9100da00708fdc94fa1d33722270e509f3f (diff) |
Nuke M_80211_NODE #define which mapped to M_DEVBUF and use M_DEVBUF directly.
ok henning
-rw-r--r-- | sys/net80211/ieee80211_node.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index cf6a4c73394..fc1a5b103a5 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.73 2012/08/25 11:34:27 kettenis Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.74 2012/09/20 17:21:13 stsp Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -99,8 +99,6 @@ void ieee80211_inact_timeout(void *); void ieee80211_node_cache_timeout(void *); #endif -#define M_80211_NODE M_DEVBUF - #ifndef IEEE80211_STA_ONLY void ieee80211_inact_timeout(void *arg) @@ -761,7 +759,7 @@ ieee80211_get_rate(struct ieee80211com *ic) struct ieee80211_node * ieee80211_node_alloc(struct ieee80211com *ic) { - return malloc(sizeof(struct ieee80211_node), M_80211_NODE, + return malloc(sizeof(struct ieee80211_node), M_DEVBUF, M_NOWAIT | M_ZERO); } @@ -778,7 +776,7 @@ void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { ieee80211_node_cleanup(ic, ni); - free(ni, M_80211_NODE); + free(ni, M_DEVBUF); } void |