Skip to content

Commit f0c0407

Browse files
committed
mac80211: remove unnecessary NULL check
We don't need to check if he_oper is NULL before calling ieee80211_verify_sta_he_mcs_support() as it - now - will correctly check this itself. Remove the redundant check. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 47aa786 commit f0c0407

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/mac80211/mlme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4592,8 +4592,7 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
45924592
else
45934593
he_oper = NULL;
45944594

4595-
if (!he_oper ||
4596-
!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
4595+
if (!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
45974596
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
45984597
}
45994598

0 commit comments

Comments
 (0)