]> 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)
commit33c31358742b782f88f069702787e56e78eb0b5c
treebf868493adabb78f53699651c7279b52cc3e6d05
parente52982329f930bc360889bba3f7ad78ccab3ea82
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