projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9082631
)
iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta
author
Greg Dietsche
<
[email protected]
>
Wed, 28 Sep 2011 22:54:04 +0000
(17:54 -0500)
committer
John W. Linville
<
[email protected]
>
Fri, 30 Sep 2011 19:57:04 +0000
(15:57 -0400)
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 <
[email protected]
>
Signed-off-by: Wey-Yi Guy <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index c14f8d6fd7d8d36878f071ba907ebe0661f5c848..7d6a3bf6495097e632a637800de5b4d1cc3e195c 100644
(file)
--- 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,
info->flags & IEEE80211_TX_CTL_NO_ACK)
return;
- if (!sta || !lq_sta)
- return;
-
lq_sta->supp_rates = sta->supp_rates[lq_sta->band];
tid = rs_tl_add_packet(lq_sta, hdr);