summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-02-28 09:48:12 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-03-04 14:32:55 +0100
commit2015d2d6391bf08115566c80fe2964b434cf0681 (patch)
treeca6e051576d67542faf92db747e84f84d1a2f18d /net/mac80211
parent68f6c6afbcebdc3acdc6084abfe453f4cba6b9dc (diff)
downloadlinux-2015d2d6391bf08115566c80fe2964b434cf0681.tar.gz
linux-2015d2d6391bf08115566c80fe2964b434cf0681.tar.bz2
linux-2015d2d6391bf08115566c80fe2964b434cf0681.zip
wifi: mac80211: remove unnecessary ML element checks
Given the prior changes to ieee80211_mle_size_ok(), we can now pass NULL to for_each_mle_subelement(), so no longer need to check for that here explicitly. Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240228094901.9e32c4b63875.Ia2ee0aafdc8a48bd21b485cc36a9866f950d781b@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/parse.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/parse.c b/net/mac80211/parse.c
index ae0f14bd952a..d231aaecc219 100644
--- a/net/mac80211/parse.c
+++ b/net/mac80211/parse.c
@@ -720,9 +720,6 @@ static void ieee80211_mle_get_sta_prof(struct ieee802_11_elems *elems,
ssize_t ml_len = elems->ml_basic_len;
const struct element *sub;
- if (!ml || !ml_len)
- return;
-
for_each_mle_subelement(sub, (u8 *)ml, ml_len) {
struct ieee80211_mle_per_sta_profile *prof = (void *)sub->data;
ssize_t sta_prof_len;