提交 554be833 编写于 作者: J Johannes Berg

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: NJohannes Berg <johannes.berg@intel.com>
上级 3453de98
...@@ -800,8 +800,8 @@ static int ieee80211_set_ftm_responder_params( ...@@ -800,8 +800,8 @@ static int ieee80211_set_ftm_responder_params(
u8 *pos; u8 *pos;
int len; int len;
if ((!lci || !lci_len) && (!civicloc || !civicloc_len)) if (!lci_len && !civicloc_len)
return 1; return 0;
bss_conf = &sdata->vif.bss_conf; bss_conf = &sdata->vif.bss_conf;
old = bss_conf->ftmr_params; old = bss_conf->ftmr_params;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册