]> git.baikalelectronics.ru Git - kernel.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)
commitbe01e2210436312e7e0932075fac5bae033b742d
treebf868493adabb78f53699651c7279b52cc3e6d05
parenta236b32c9d721114fbc0c0a3897e3d1ad9c7a377
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