summaryrefslogtreecommitdiffstats
path: root/net/mac80211/parse.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-02-28 09:48:15 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-03-04 14:33:01 +0100
commitb413c0bd9ccc6bf705b51ae268c3a7ebba1cd11f (patch)
treec78d1efd3eb84d1b21422e4d9bb272ceed1859ba /net/mac80211/parse.c
parentwifi: mac80211: defragment reconfiguration MLE when parsing (diff)
downloadlinux-b413c0bd9ccc6bf705b51ae268c3a7ebba1cd11f.tar.xz
linux-b413c0bd9ccc6bf705b51ae268c3a7ebba1cd11f.zip
wifi: mac80211: remove unneeded scratch_len subtraction
We're always using "scratch + len - pos", so we don't need to subtract here to calculate the remaining length. Remove the unnecessary subtraction. Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com> Link: https://msgid.link/20240228094902.44e07cfa9e63.I7a9758fb9bc6b726aac49804f2f05cd521bc4128@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/parse.c')
-rw-r--r--net/mac80211/parse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/parse.c b/net/mac80211/parse.c
index 804323858977..73e52504ed97 100644
--- a/net/mac80211/parse.c
+++ b/net/mac80211/parse.c
@@ -862,7 +862,6 @@ ieee802_11_parse_elems_full(struct ieee80211_elems_parse_params *params)
elems, params->bss,
nontransmitted_profile);
elems->scratch_pos += nontransmitted_profile_len;
- elems->scratch_len -= nontransmitted_profile_len;
non_inherit = cfg80211_find_ext_elem(WLAN_EID_EXT_NON_INHERITANCE,
nontransmitted_profile,
nontransmitted_profile_len);