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>
This commit is contained in:
parent
ab3080532e
commit
97c6166001
@ -800,7 +800,7 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
|
|||||||
u32 wifi_link_status = 0x0;
|
u32 wifi_link_status = 0x0;
|
||||||
bool bt_hs_on = false, under_ips = false, under_lps = false;
|
bool bt_hs_on = false, under_ips = false, under_lps = false;
|
||||||
bool low_power = false, dc_mode = false;
|
bool low_power = false, dc_mode = false;
|
||||||
u8 wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state;
|
u8 wifi_chnl = 0, wifi_hs_chnl = 0;
|
||||||
u8 ap_num = 0;
|
u8 ap_num = 0;
|
||||||
|
|
||||||
wifi_link_status = halbtc_get_wifi_link_status(btcoexist);
|
wifi_link_status = halbtc_get_wifi_link_status(btcoexist);
|
||||||
@ -856,7 +856,6 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
|
|||||||
dc_mode = true; /*TODO*/
|
dc_mode = true; /*TODO*/
|
||||||
under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0;
|
under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0;
|
||||||
under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1;
|
under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1;
|
||||||
fw_ps_state = 0;
|
|
||||||
low_power = 0; /*TODO*/
|
low_power = 0; /*TODO*/
|
||||||
seq_printf(m, "\n %-35s = %s%s%s%s",
|
seq_printf(m, "\n %-35s = %s%s%s%s",
|
||||||
"Power Status",
|
"Power Status",
|
||||||
@ -1644,26 +1643,9 @@ void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type)
|
|||||||
|
|
||||||
void exhalbtc_stack_operation_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))
|
if (!halbtc_is_bt_coexist_available(btcoexist))
|
||||||
return;
|
return;
|
||||||
btcoexist->statistics.cnt_stack_operation_notify++;
|
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)
|
void exhalbtc_halt_notify(struct btc_coexist *btcoexist)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user