projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9077f05
)
mac80211: IBSS: avoid unneeded return value processing
author
Koen Vandeputte
<koen.vandeputte@ncentric.com>
Wed, 11 Sep 2019 14:14:31 +0000
(16:14 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 4 Oct 2019 11:47:12 +0000
(13:47 +0200)
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
patch
|
blob
|
history
diff --git
a/net/mac80211/ibss.c
b/net/mac80211/ibss.c
index 0a6ff01c68a9659b71bb0823ccc089a0cc4964cb..d40744903fa90f596435d7e9fdb4d46ec39683b3 100644
(file)
--- a/
net/mac80211/ibss.c
+++ b/
net/mac80211/ibss.c
@@
-538,7
+538,6
@@
int ieee80211_ibss_finish_csa(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_ibss *ifibss = &sdata->u.ibss;
struct cfg80211_bss *cbss;
- int err, changed = 0;
sdata_assert_lock(sdata);
@@
-560,13
+559,7
@@
int ieee80211_ibss_finish_csa(struct ieee80211_sub_if_data *sdata)
ifibss->chandef = sdata->csa_chandef;
/* generate the beacon */
- err = ieee80211_ibss_csa_beacon(sdata, NULL);
- if (err < 0)
- return err;
-
- changed |= err;
-
- return changed;
+ return ieee80211_ibss_csa_beacon(sdata, NULL);
}
void ieee80211_ibss_stop(struct ieee80211_sub_if_data *sdata)