提交 14cc696c 编写于 作者: G Gustavo A. R. Silva 提交者: Kalle Valo

rtlwifi: btcoex: 23b 1ant: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

This issue was detected with the help of Coccinelle.

Addresses-Coverity-ID: 1415177
Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 d382b9c0
......@@ -600,14 +600,8 @@ static void halbtc8723b1ant_coex_table_with_type(struct btc_coexist *btcoexist,
0xffffff, 0x3);
break;
case 5:
if ((coex_sta->cck_ever_lock) && (coex_sta->scan_ap_num <= 5))
halbtc8723b1ant_coex_table(btcoexist, force_exec,
0x5a5a5a5a, 0x5aaa5a5a,
0xffffff, 0x3);
else
halbtc8723b1ant_coex_table(btcoexist, force_exec,
0x5a5a5a5a, 0x5aaa5a5a,
0xffffff, 0x3);
halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a,
0x5aaa5a5a, 0xffffff, 0x3);
break;
case 6:
halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册