diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-07-12 20:35:39 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-07-31 10:24:23 +0300 |
commit | 8328685682965cbf9348f6f85cadc8c0598771d9 (patch) | |
tree | 8547e96000675752bfd3bc673e1666d728925367 /Documentation/mips | |
parent | dec4ca931244632eeca46f406b2ce7f5a1fe723f (diff) | |
download | linux-8328685682965cbf9348f6f85cadc8c0598771d9.tar.xz |
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>
Diffstat (limited to 'Documentation/mips')
0 files changed, 0 insertions, 0 deletions