wifi: mac80211: simplify ieee80211_assign_link_chanctx()
authorJohannes Berg <johannes.berg@intel.com>
Thu, 18 Apr 2024 09:52:20 +0000 (11:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Apr 2024 08:19:37 +0000 (10:19 +0200)
commit87f5500285fbd27eb36efbcd02ddcee1ad27ec91
treed042d77d8700355e13a60807ff7210efc1005e15
parent5e0c422d12b535cb3c7281d017f1a5b1b16098a5
wifi: mac80211: simplify ieee80211_assign_link_chanctx()

There's no need for a label/goto here, the only thing is
that drv_assign_vif_chanctx() must succeed to set 'conf'
and add the new context to the list, the remaining code
is (and must be) the same regardless.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://msgid.link/20240418115219.a94852030d33.I9d647178ab25636372ed79e5312c68a06e0bf60c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c