]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw88: remove CPT execution branch never used
authorDmitry Kandybka <d.kandybka@gmail.com>
Fri, 9 Aug 2024 08:53:10 +0000 (11:53 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 16 Aug 2024 11:40:43 +0000 (19:40 +0800)
commit77c977327dfaa9ae2e154964cdb89ceb5c7b7cf1
tree280acd339a0cb29913b30e679a859c958d8b382f
parent338c9cba8d6f16c79c58c20d68561505a8170765
wifi: rtw88: remove CPT execution branch never used

In 'rtw_coex_action_bt_a2dp_pan', 'wl_cpt_test' and 'bt_cpt_test' are
hardcoded to false, so corresponding 'table_case' and 'tdma_case'
assignments are never met.
Also 'rtw_coex_set_rf_para(rtwdev, chip->wl_rf_para_rx[1])' is never
executed. Assuming that CPT was never fully implemented, remove
lookalike leftovers. Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 76f631cb401f ("rtw88: coex: update the mechanism for A2DP + PAN")
Signed-off-by: Dmitry Kandybka <d.kandybka@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240809085310.10512-1-d.kandybka@gmail.com
drivers/net/wireless/realtek/rtw88/coex.c