diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-09-07 00:38:34 +0200 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-16 12:52:21 +0100 |
commit | da6134d2537363775c73e96186c0d5eb9b2c6b1c (patch) | |
tree | d41d7c1f2b89ddbb8be64ea8912f700ab2a138cc /drivers/net/wireless/iwlegacy | |
parent | iwlegacy: 4965: remove vif null check in request_scan (diff) | |
download | linux-da6134d2537363775c73e96186c0d5eb9b2c6b1c.tar.xz linux-da6134d2537363775c73e96186c0d5eb9b2c6b1c.zip |
iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_status
the null check on sta in il4965_rs_tx_status is not necessary
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-rs.c b/drivers/net/wireless/iwlegacy/4965-rs.c index 93c3a4d9b9b5..b0946a1ee37d 100644 --- a/drivers/net/wireless/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/iwlegacy/4965-rs.c @@ -991,7 +991,7 @@ il4965_rs_tx_status(void *il_r, struct ieee80211_supported_band *sband, lq_sta->last_rate_n_flags = tx_rate; done: /* See if there's a better rate or modulation mode to try. */ - if (sta && sta->supp_rates[sband->band]) + if (sta->supp_rates[sband->band]) il4965_rs_rate_scale_perform(il, skb, sta, lq_sta); } |