OSDN Git Service

nl80211: Remove a misleading label in 'nl80211_trigger_scan()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 12 Jul 2020 17:35:39 +0000 (19:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:24:23 +0000 (09:24 +0200)
commit8328685682965cbf9348f6f85cadc8c0598771d9
tree8547e96000675752bfd3bc673e1666d728925367
parentdec4ca931244632eeca46f406b2ce7f5a1fe723f
nl80211: Remove a misleading label in 'nl80211_trigger_scan()'

Since commit 5fe231e87372 ("cfg80211: vastly simplify locking"), the
'unlock' label at the end of 'nl80211_trigger_scan()' is useless and
misleading, because nothing is unlocked there.

Direct return can be used instead of 'err = -<error code>; goto unlock;'
construction.

Remove this label and simplify code accordingly.

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