summaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-02-26 11:24:35 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-02-27 14:06:42 -0500
commit005e472b45131250fe09c194f8b872b86fd266c1 (patch)
treedbeb7fe7ee8fdf8ff39c4ded9e647942ad15e639 /net/mac80211/tx.c
parent3431683759596409427b6726e582f3ee66082728 (diff)
downloadlinux-005e472b45131250fe09c194f8b872b86fd266c1.tar.gz
linux-005e472b45131250fe09c194f8b872b86fd266c1.tar.bz2
linux-005e472b45131250fe09c194f8b872b86fd266c1.zip
mac80211: remove local_to_hw
That's a lot longer than open-coding it and doesn't really add value, so just remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index c6eadac9ca4e..7c021f255716 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -625,7 +625,7 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
tx->local->hw.wiphy->frag_threshold);
/* set up the tx rate control struct we give the RC algo */
- txrc.hw = local_to_hw(tx->local);
+ txrc.hw = &tx->local->hw;
txrc.sband = sband;
txrc.bss_conf = &tx->sdata->vif.bss_conf;
txrc.skb = tx->skb;