]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: clean up return in ieee802_11_find_bssid_profile()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 29 May 2026 08:24:56 +0000 (10:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jun 2026 12:11:56 +0000 (14:11 +0200)
commit3b142c38b2c5e9885bb43fed394285c613b3975a
tree43f6764f99c149fbba438e3a5172821bfcd9ae9e
parent79fb99e16f60a77cbd2824695d98aa34ebbb9d69
wifi: mac80211: clean up return in ieee802_11_find_bssid_profile()

There's no need to define 'profile_len' at the outer scope
and initialize it, move it where needed and just return 0
if nothing can be found.

Link: https://patch.msgid.link/20260529102644.46f25609ddef.I9e651a0018e66953f4fb508f784188e00351c07f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/parse.c