diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-27 20:04:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:20 -0500 |
commit | 9475af6e44d2c17583243c253e2464467b52fa50 (patch) | |
tree | 573f01d006774828e0b39102ee31525cc5b4dbcb /net/mac80211/main.c | |
parent | 19a101a02ec65400233459ee7cef7037dbe8f15b (diff) |
mac80211: convert to idr_alloc()
Convert to the much saner new idr interface.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index d0dd11153a6c..1a8591b77a13 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -647,8 +647,6 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
647 | 647 | ||
648 | spin_lock_init(&local->ack_status_lock); | 648 | spin_lock_init(&local->ack_status_lock); |
649 | idr_init(&local->ack_status_frames); | 649 | idr_init(&local->ack_status_frames); |
650 | /* preallocate at least one entry */ | ||
651 | idr_pre_get(&local->ack_status_frames, GFP_KERNEL); | ||
652 | 650 | ||
653 | sta_info_init(local); | 651 | sta_info_init(local); |
654 | 652 | ||