Skip to content

Commit

Permalink
mac80211: remove unnecessary NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Jun 29, 2018
1 parent 47aa786 commit f0c0407
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -4592,8 +4592,7 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
else
he_oper = NULL;

if (!he_oper ||
!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
if (!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
}

Expand Down

0 comments on commit f0c0407

Please sign in to comment.