提交 a5f3aed5 编写于 作者: W Wan Jiabing 提交者: Kalle Valo

wil6210: simplify if-if to if-else

Use if and else instead of if(A) and if (!A).
Signed-off-by: NWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: NKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220424094552.105466-1-wanjiabing@vivo.com
上级 7471f7d2
...@@ -1653,10 +1653,9 @@ static int wil_cfg80211_add_key(struct wiphy *wiphy, ...@@ -1653,10 +1653,9 @@ static int wil_cfg80211_add_key(struct wiphy *wiphy,
params->seq_len, params->seq); params->seq_len, params->seq);
return -EINVAL; return -EINVAL;
} }
} } else {
if (!IS_ERR(cs))
wil_del_rx_key(key_index, key_usage, cs); wil_del_rx_key(key_index, key_usage, cs);
}
if (params->seq && params->seq_len != IEEE80211_GCMP_PN_LEN) { if (params->seq && params->seq_len != IEEE80211_GCMP_PN_LEN) {
wil_err(wil, wil_err(wil,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册