diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-09-28 18:54:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-30 15:57:04 -0400 |
commit | a76011e2cbb6915f60488477311e0f269cee6496 (patch) | |
tree | cd8717fe711205936b6923be84af580752d4b860 | |
parent | 90826313fd69d198da7574779460f793765abfa5 (diff) |
iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta
both sta and lq_sta are guaranteed to be not null in the
calling function so we don't need to check them here.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index c14f8d6fd7d8..7d6a3bf64950 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2273,9 +2273,6 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
2273 | info->flags & IEEE80211_TX_CTL_NO_ACK) | 2273 | info->flags & IEEE80211_TX_CTL_NO_ACK) |
2274 | return; | 2274 | return; |
2275 | 2275 | ||
2276 | if (!sta || !lq_sta) | ||
2277 | return; | ||
2278 | |||
2279 | lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; | 2276 | lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; |
2280 | 2277 | ||
2281 | tid = rs_tl_add_packet(lq_sta, hdr); | 2278 | tid = rs_tl_add_packet(lq_sta, hdr); |