summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-09-06 18:31:13 -0500
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-16 12:52:59 +0100
commit144c0961b47ab07812ec1440adea6d4218b9a6a6 (patch)
treea8756e8b6f75372693fc5612f8dd5019d95c05e9
parentda6134d2537363775c73e96186c0d5eb9b2c6b1c (diff)
downloadlinux-stable-144c0961b47ab07812ec1440adea6d4218b9a6a6.tar.gz
linux-stable-144c0961b47ab07812ec1440adea6d4218b9a6a6.tar.bz2
linux-stable-144c0961b47ab07812ec1440adea6d4218b9a6a6.zip
iwlegacy: 4965-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: Stanislaw Gruszka <sgruszka@redhat.com>
-rw-r--r--drivers/net/wireless/iwlegacy/4965-rs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-rs.c b/drivers/net/wireless/iwlegacy/4965-rs.c
index b0946a1ee37d..2ec808e40c96 100644
--- a/drivers/net/wireless/iwlegacy/4965-rs.c
+++ b/drivers/net/wireless/iwlegacy/4965-rs.c
@@ -1793,9 +1793,6 @@ il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb,
(info->flags & IEEE80211_TX_CTL_NO_ACK))
return;
- if (!sta || !lq_sta)
- return;
-
lq_sta->supp_rates = sta->supp_rates[lq_sta->band];
tid = il4965_rs_tl_add_packet(lq_sta, hdr);