mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
wifi: mac80211: remove unnecessary ML element type check
At this point, since it's taken from elems->ml_basic which is stored only if it's of type basic, we don't really need to check again if it's basic. Reviewed-by: Ilan Peer <ilan.peer@intel.com> Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240228094901.ad1d4a09a6eb.Ib96fa75b1a6db21dd4182dcfa11fe9aff78fa3ed@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
6810ee918d
commit
0217972f96
1 changed files with 0 additions and 4 deletions
|
@ -723,10 +723,6 @@ static void ieee80211_mle_get_sta_prof(struct ieee802_11_elems *elems,
|
||||||
if (!ml || !ml_len)
|
if (!ml || !ml_len)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (le16_get_bits(ml->control, IEEE80211_ML_CONTROL_TYPE) !=
|
|
||||||
IEEE80211_ML_CONTROL_TYPE_BASIC)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for_each_mle_subelement(sub, (u8 *)ml, ml_len) {
|
for_each_mle_subelement(sub, (u8 *)ml, ml_len) {
|
||||||
struct ieee80211_mle_per_sta_profile *prof = (void *)sub->data;
|
struct ieee80211_mle_per_sta_profile *prof = (void *)sub->data;
|
||||||
ssize_t sta_prof_len;
|
ssize_t sta_prof_len;
|
||||||
|
|
Loading…
Reference in a new issue