wil6210: simplify if-if to if-else
Use if and else instead of if(A) and if (!A). Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220424094552.105466-1-wanjiabing@vivo.com
This commit is contained in:
parent
7471f7d273
commit
a5f3aed588
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue