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:
a6e492b
)
minstrel_ht: remove unnecessary NULL check in minstrel_ht_update_caps
author
John W. Linville
<
[email protected]
>
Thu, 22 Jul 2010 19:36:02 +0000
(15:36 -0400)
committer
John W. Linville
<
[email protected]
>
Mon, 26 Jul 2010 19:09:04 +0000
(15:09 -0400)
If sta is NULL, we will have problems long before we get here...
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
Cc: Felix Fietkau <
[email protected]
>
net/mac80211/rc80211_minstrel_ht.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel_ht.c
b/net/mac80211/rc80211_minstrel_ht.c
index b5ace243546c7069791321c1b74380bbd79ad7cb..a16694bb634b01ea4401ba24db5d99a6c35c26dd 100644
(file)
--- a/
net/mac80211/rc80211_minstrel_ht.c
+++ b/
net/mac80211/rc80211_minstrel_ht.c
@@
-636,7
+636,7
@@
minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband,
int i;
/* fall back to the old minstrel for legacy stations */
- if (
sta &&
!sta->ht_cap.ht_supported) {
+ if (!sta->ht_cap.ht_supported) {
msp->is_ht = false;
memset(&msp->legacy, 0, sizeof(msp->legacy));
msp->legacy.r = msp->ratelist;