ath9k: remove temp variable ratecode from ath_rx_prepare()

Its just a distraction when reading the code, instead use the
rx_stats->rs_rate directly.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Luis R. Rodriguez 2009-11-03 17:52:33 -08:00 committed by John W. Linville
parent 207e96854e
commit 14077f5b7a
1 changed files with 2 additions and 5 deletions

View File

@ -161,7 +161,6 @@ static int ath_rx_prepare(struct ath_common *common,
{ {
struct ath_hw *ah = common->ah; struct ath_hw *ah = common->ah;
struct ieee80211_hdr *hdr; struct ieee80211_hdr *hdr;
u8 ratecode;
__le16 fc; __le16 fc;
struct ieee80211_sta *sta; struct ieee80211_sta *sta;
struct ath_node *an; struct ath_node *an;
@ -174,16 +173,14 @@ static int ath_rx_prepare(struct ath_common *common,
if (!ath9k_rx_accept(common, skb, rx_status, rx_stats, decrypt_error)) if (!ath9k_rx_accept(common, skb, rx_status, rx_stats, decrypt_error))
goto rx_next; goto rx_next;
ratecode = rx_stats->rs_rate; if (rx_stats->rs_rate & 0x80) {
if (ratecode & 0x80) {
/* HT rate */ /* HT rate */
rx_status->flag |= RX_FLAG_HT; rx_status->flag |= RX_FLAG_HT;
if (rx_stats->rs_flags & ATH9K_RX_2040) if (rx_stats->rs_flags & ATH9K_RX_2040)
rx_status->flag |= RX_FLAG_40MHZ; rx_status->flag |= RX_FLAG_40MHZ;
if (rx_stats->rs_flags & ATH9K_RX_GI) if (rx_stats->rs_flags & ATH9K_RX_GI)
rx_status->flag |= RX_FLAG_SHORT_GI; rx_status->flag |= RX_FLAG_SHORT_GI;
rx_status->rate_idx = ratecode & 0x7f; rx_status->rate_idx = rx_stats->rs_rate & 0x7f;
} else { } else {
struct ieee80211_supported_band *sband; struct ieee80211_supported_band *sband;
unsigned int i = 0; unsigned int i = 0;