aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2017-12-21 17:28:21 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 10:45:45 -0500
commit97c6166001efe54f74d25e5e46b5bdc54bb01391 (patch)
tree794217c99cc662a51f0fdec96f282495a372adb2
parentab3080532e10ce51b171419b6f59182bbef7beb2 (diff)
Staging: rtlwifi: Remove unused variable and the code
Remove unused variable and also remove unused code associated with initializing the unused variable. Unused variable was detected using the following semantic patch by coccinelle. @@ type T; identifier i; constant C; @@ ( extern T i; | - T i; <+... when != i - i = C; ...+> ) Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
-rw-r--r--drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
index 52620b72cfa9..493011a54e64 100644
--- a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
+++ b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c
@@ -800,7 +800,7 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
800 u32 wifi_link_status = 0x0; 800 u32 wifi_link_status = 0x0;
801 bool bt_hs_on = false, under_ips = false, under_lps = false; 801 bool bt_hs_on = false, under_ips = false, under_lps = false;
802 bool low_power = false, dc_mode = false; 802 bool low_power = false, dc_mode = false;
803 u8 wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state; 803 u8 wifi_chnl = 0, wifi_hs_chnl = 0;
804 u8 ap_num = 0; 804 u8 ap_num = 0;
805 805
806 wifi_link_status = halbtc_get_wifi_link_status(btcoexist); 806 wifi_link_status = halbtc_get_wifi_link_status(btcoexist);
@@ -856,7 +856,6 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
856 dc_mode = true; /*TODO*/ 856 dc_mode = true; /*TODO*/
857 under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0; 857 under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0;
858 under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1; 858 under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1;
859 fw_ps_state = 0;
860 low_power = 0; /*TODO*/ 859 low_power = 0; /*TODO*/
861 seq_printf(m, "\n %-35s = %s%s%s%s", 860 seq_printf(m, "\n %-35s = %s%s%s%s",
862 "Power Status", 861 "Power Status",
@@ -1644,26 +1643,9 @@ void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type)
1644 1643
1645void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type) 1644void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type)
1646{ 1645{
1647 u8 stack_op_type;
1648
1649 if (!halbtc_is_bt_coexist_available(btcoexist)) 1646 if (!halbtc_is_bt_coexist_available(btcoexist))
1650 return; 1647 return;
1651 btcoexist->statistics.cnt_stack_operation_notify++; 1648 btcoexist->statistics.cnt_stack_operation_notify++;
1652 if (btcoexist->manual_control)
1653 return;
1654
1655 if ((type == HCI_BT_OP_INQUIRY_START) ||
1656 (type == HCI_BT_OP_PAGING_START) ||
1657 (type == HCI_BT_OP_PAIRING_START)) {
1658 stack_op_type = BTC_STACK_OP_INQ_PAGE_PAIR_START;
1659 } else if ((type == HCI_BT_OP_INQUIRY_FINISH) ||
1660 (type == HCI_BT_OP_PAGING_SUCCESS) ||
1661 (type == HCI_BT_OP_PAGING_UNSUCCESS) ||
1662 (type == HCI_BT_OP_PAIRING_FINISH)) {
1663 stack_op_type = BTC_STACK_OP_INQ_PAGE_PAIR_FINISH;
1664 } else {
1665 stack_op_type = BTC_STACK_OP_NONE;
1666 }
1667} 1649}
1668 1650
1669void exhalbtc_halt_notify(struct btc_coexist *btcoexist) 1651void exhalbtc_halt_notify(struct btc_coexist *btcoexist)