mac80211: ftm responder: remove pointless defensive coding
The pointer and corresponding length is always set in pairs in cfg80211, so no need to have this strange defensive check that also confuses static checkers. Clean it up. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Родитель
3453de9814
Коммит
554be83330
|
@ -800,8 +800,8 @@ static int ieee80211_set_ftm_responder_params(
|
|||
u8 *pos;
|
||||
int len;
|
||||
|
||||
if ((!lci || !lci_len) && (!civicloc || !civicloc_len))
|
||||
return 1;
|
||||
if (!lci_len && !civicloc_len)
|
||||
return 0;
|
||||
|
||||
bss_conf = &sdata->vif.bss_conf;
|
||||
old = bss_conf->ftmr_params;
|
||||
|
|
Загрузка…
Ссылка в новой задаче