mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
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>
This commit is contained in:
parent
47aa7861b9
commit
f0c0407d2a
@ -4592,8 +4592,7 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
|
|||||||
else
|
else
|
||||||
he_oper = NULL;
|
he_oper = NULL;
|
||||||
|
|
||||||
if (!he_oper ||
|
if (!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
|
||||||
!ieee80211_verify_sta_he_mcs_support(sband, he_oper))
|
|
||||||
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
|
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user