]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: IBSS: avoid unneeded return value processing
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 11 Sep 2019 14:14:31 +0000 (16:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Oct 2019 11:47:12 +0000 (13:47 +0200)
commit020fa0f2f03ad7ef9c51cfda6a156b3cdf86b631
treebf868493adabb78f53699651c7279b52cc3e6d05
parent9077f052abd5391a866dd99e27212213648becef
mac80211: IBSS: avoid unneeded return value processing

when ieee80211_ibss_csa_beacon() fails, we return it's value.
When it succeeds, we basically copy it's value and also .. return it.

Just return it immediately, simplifying the code.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Link: https://lore.kernel.org/r/20190911141431.12498-1-koen.vandeputte@ncentric.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c