diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-22 19:36:02 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-26 19:09:04 (GMT) |
commit | 00fc90c886220efe8b634d3f2a04713fcebbe2c0 (patch) | |
tree | 66e36e0b338564b60be182333c6bdba6b13f0d77 /net/mac80211 | |
parent | a6e492b9b5d323ca391312b981a5017e450132c0 (diff) | |
download | linux-00fc90c886220efe8b634d3f2a04713fcebbe2c0.tar.xz |
minstrel_ht: remove unnecessary NULL check in minstrel_ht_update_caps
If sta is NULL, we will have problems long before we get here...
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index b5ace24..a16694b 100644 --- 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; |