Skip to content
Commit 83286856 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Johannes Berg
Browse files

nl80211: Remove a misleading label in 'nl80211_trigger_scan()'



Since commit 5fe231e8 ("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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200712173539.274395-1-christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent dec4ca93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment