]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: clean up 'ret' in sta_link_apply_parameters()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Jun 2024 10:57:19 +0000 (13:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:08:51 +0000 (18:08 +0100)
commit7df24b3a8c54554438b06f6555aeffc1827641b0
tree1c2b5833096c52a542534779759884ad6319a31c
parent29e640ae641b9f5ffc666049426d2b16c98d9963
wifi: mac80211: clean up 'ret' in sta_link_apply_parameters()

[ Upstream commit 642508a42f74d7467aae7c56dff3016db64a25bd ]

There's no need to have the always-zero ret variable in
the function scope, move it into the inner scope only.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240605135233.eb7a24632d98.I72d7fe1da89d4b89bcfd0f5fb9057e3e69355cfe@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Stable-dep-of: 819e0f1e58e0 ("wifi: mac80211: fix station NSS capability initialization order")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/cfg.c