mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-07 07:25:11 +07:00
rtlwifi: btcoexist: 23b 1ant: fix duplicated code for different branches
A typo led to this issue, which was detected with the help of Coccinelle. In addition to fixing the error, the code is refactored to eliminate an if statement. Addresses-Coverity-ID: 1226788 Reported-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Cc: Yan-Hsuan Chuang <yhchuang@realtek.com> Cc: Birming Chiu <birming@realtek.com> Cc: Shaofu <shaofu@realtek.com> Cc: Steven Ting <steventing@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
e3ae1c7720
commit
0f61953dd0
@ -2260,13 +2260,10 @@ static void halbtc8723b1ant_run_coexist_mechanism(struct btc_coexist *btcoexist)
|
|||||||
|
|
||||||
if (iot_peer != BTC_IOT_PEER_CISCO &&
|
if (iot_peer != BTC_IOT_PEER_CISCO &&
|
||||||
iot_peer != BTC_IOT_PEER_BROADCOM) {
|
iot_peer != BTC_IOT_PEER_BROADCOM) {
|
||||||
if (bt_link_info->sco_exist)
|
bool sco_exist = bt_link_info->sco_exist;
|
||||||
|
|
||||||
halbtc8723b1ant_limited_rx(btcoexist,
|
halbtc8723b1ant_limited_rx(btcoexist,
|
||||||
NORMAL_EXEC, false,
|
NORMAL_EXEC, sco_exist,
|
||||||
false, 0x5);
|
|
||||||
else
|
|
||||||
halbtc8723b1ant_limited_rx(btcoexist,
|
|
||||||
NORMAL_EXEC, false,
|
|
||||||
false, 0x5);
|
false, 0x5);
|
||||||
} else {
|
} else {
|
||||||
if (bt_link_info->sco_exist) {
|
if (bt_link_info->sco_exist) {
|
||||||
|
Loading…
Reference in New Issue
Block a user