nl80211: Simplify error handling path in 'nl80211_trigger_scan()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 12 Jul 2020 17:35:51 +0000 (19:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:24:23 +0000 (09:24 +0200)
commit504776be46cb61bc0606e0e943fd6a04c38f2130
tree7409b59de9be8cf3ea5baaf18b88fd6a4e26ee0a
parent8328685682965cbf9348f6f85cadc8c0598771d9
nl80211: Simplify error handling path in 'nl80211_trigger_scan()'

Re-write the end of 'nl80211_trigger_scan()' with a more standard, easy to
understand and future proof version.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200712173551.274448-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c