mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 17:14:14 +08:00
mac80211: directly return ieee80211_vif_use_reserved_context()
No need to store ieee80211_vif_use_reserved_context() result and test it before returning. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
e9ed49bf4c
commit
408b18abf6
@ -2901,11 +2901,7 @@ static int __ieee80211_csa_finalize(struct ieee80211_sub_if_data *sdata)
|
||||
if (sdata->reserved_ready)
|
||||
return 0;
|
||||
|
||||
err = ieee80211_vif_use_reserved_context(sdata);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return ieee80211_vif_use_reserved_context(sdata);
|
||||
}
|
||||
|
||||
if (!cfg80211_chandef_identical(&sdata->vif.bss_conf.chandef,
|
||||
|
Loading…
Reference in New Issue
Block a user