]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: clean up a needless assignment in ieee80211_sta_activate_link()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Fri, 12 Aug 2022 10:31:26 +0000 (12:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 09:02:44 +0000 (11:02 +0200)
commit89e33cb8536b7d98647940f5c29e5a7d101de8de
tree9917358bdad8749f50c35963c6058042b282cac1
parentbd8c9b9aff975a6d3f1f2b795ee9eb228c8f0eea
wifi: mac80211: clean up a needless assignment in ieee80211_sta_activate_link()

Commit 18a1b8dae51b ("wifi: mac80211: sta_info: fix link_sta insertion")
makes ieee80211_sta_activate_link() return 0 in the 'hash' label case.
Hence, setting ret in the !test_sta_flag(...) branch to zero is not needed
anymore and can be dropped.

Remove a needless assignment.

No functional change. No change in object code.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/r/20220812103126.25308-1-lukas.bulwahn@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c