]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rtlwifi: btcoex: remove unused function exhalbtc_stack_operation_notify
authorYueHaibing <yuehaibing@huawei.com>
Sat, 25 May 2019 14:48:44 +0000 (22:48 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 May 2019 12:38:02 +0000 (15:38 +0300)
There is no callers in tree, so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h

index 041326e6dd2fe57e278f136126f160d20ac2ad3d..152242ac0aa5c8d899d70253b4e798d005e5620d 100644 (file)
@@ -1741,30 +1741,6 @@ void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type)
        }
 }
 
-void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type)
-{
-       u8 stack_op_type;
-
-       if (!halbtc_is_bt_coexist_available(btcoexist))
-               return;
-       btcoexist->statistics.cnt_stack_operation_notify++;
-       if (btcoexist->manual_control)
-               return;
-
-       if ((type == HCI_BT_OP_INQUIRY_START) ||
-           (type == HCI_BT_OP_PAGING_START) ||
-           (type == HCI_BT_OP_PAIRING_START)) {
-               stack_op_type = BTC_STACK_OP_INQ_PAGE_PAIR_START;
-       } else if ((type == HCI_BT_OP_INQUIRY_FINISH) ||
-                  (type == HCI_BT_OP_PAGING_SUCCESS) ||
-                  (type == HCI_BT_OP_PAGING_UNSUCCESS) ||
-                  (type == HCI_BT_OP_PAIRING_FINISH)) {
-               stack_op_type = BTC_STACK_OP_INQ_PAGE_PAIR_FINISH;
-       } else {
-               stack_op_type = BTC_STACK_OP_NONE;
-       }
-}
-
 void exhalbtc_halt_notify(struct btc_coexist *btcoexist)
 {
        if (!halbtc_is_bt_coexist_available(btcoexist))
index ee9aeddf1ebca2a1729fba74225832c2e570925a..8c0a7fdbf20056c59a2b79882857a96958ba192d 100644 (file)
@@ -764,7 +764,6 @@ void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_type);
 void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist, u8 *tmp_buf,
                             u8 length);
 void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type);
-void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type);
 void exhalbtc_halt_notify(struct btc_coexist *btcoexist);
 void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state);
 void exhalbtc_coex_dm_switch(struct btc_coexist *btcoexist);