Commit a5f3aed5 authored by Wan Jiabing's avatar Wan Jiabing Committed by Kalle Valo

wil6210: simplify if-if to if-else

Use if and else instead of if(A) and if (!A).
Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220424094552.105466-1-wanjiabing@vivo.com
parent 7471f7d2
......@@ -1653,10 +1653,9 @@ static int wil_cfg80211_add_key(struct wiphy *wiphy,
params->seq_len, params->seq);
return -EINVAL;
}
}
if (!IS_ERR(cs))
} else {
wil_del_rx_key(key_index, key_usage, cs);
}
if (params->seq && params->seq_len != IEEE80211_GCMP_PN_LEN) {
wil_err(wil,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment