Commit a5ee5ea9 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: r8188eu: remove empty function rtl8188e_stop_thread()

Remove empty function rtl8188e_stop_thread() and related code.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210906190223.11396-36-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c14d1023
...@@ -151,13 +151,6 @@ void rtw_hal_update_ra_mask(struct adapter *adapt, u32 mac_id, u8 rssi_level) ...@@ -151,13 +151,6 @@ void rtw_hal_update_ra_mask(struct adapter *adapt, u32 mac_id, u8 rssi_level)
} }
} }
/* Start specifical interface thread */
void rtw_hal_stop_thread(struct adapter *adapt)
{
if (adapt->HalFunc.cancel_thread)
adapt->HalFunc.cancel_thread(adapt);
}
u32 rtw_hal_read_bbreg(struct adapter *adapt, u32 regaddr, u32 bitmask) u32 rtw_hal_read_bbreg(struct adapter *adapt, u32 regaddr, u32 bitmask)
{ {
u32 data = 0; u32 data = 0;
......
...@@ -1748,10 +1748,6 @@ void rtl8188e_clone_haldata(struct adapter *dst_adapter, struct adapter *src_ada ...@@ -1748,10 +1748,6 @@ void rtl8188e_clone_haldata(struct adapter *dst_adapter, struct adapter *src_ada
memcpy(dst_adapter->HalData, src_adapter->HalData, dst_adapter->hal_data_sz); memcpy(dst_adapter->HalData, src_adapter->HalData, dst_adapter->hal_data_sz);
} }
void rtl8188e_stop_thread(struct adapter *padapter)
{
}
static void hal_notch_filter_8188e(struct adapter *adapter, bool enable) static void hal_notch_filter_8188e(struct adapter *adapter, bool enable)
{ {
if (enable) { if (enable) {
...@@ -1766,8 +1762,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) ...@@ -1766,8 +1762,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
{ {
pHalFunc->free_hal_data = &rtl8188e_free_hal_data; pHalFunc->free_hal_data = &rtl8188e_free_hal_data;
pHalFunc->cancel_thread = &rtl8188e_stop_thread;
pHalFunc->read_bbreg = &rtl8188e_PHY_QueryBBReg; pHalFunc->read_bbreg = &rtl8188e_PHY_QueryBBReg;
pHalFunc->write_bbreg = &rtl8188e_PHY_SetBBReg; pHalFunc->write_bbreg = &rtl8188e_PHY_SetBBReg;
pHalFunc->read_rfreg = &rtl8188e_PHY_QueryRFReg; pHalFunc->read_rfreg = &rtl8188e_PHY_QueryRFReg;
......
...@@ -153,8 +153,6 @@ struct hal_ops { ...@@ -153,8 +153,6 @@ struct hal_ops {
u32 mac_id, u8 rssi_level); u32 mac_id, u8 rssi_level);
void (*SetBeaconRelatedRegistersHandler)(struct adapter *padapter); void (*SetBeaconRelatedRegistersHandler)(struct adapter *padapter);
void (*cancel_thread)(struct adapter *adapter);
s32 (*hal_xmit)(struct adapter *padapter, s32 (*hal_xmit)(struct adapter *padapter,
struct xmit_frame *pxmitframe); struct xmit_frame *pxmitframe);
s32 (*mgnt_xmit)(struct adapter *padapter, s32 (*mgnt_xmit)(struct adapter *padapter,
...@@ -236,7 +234,6 @@ void rtw_hal_free_recv_priv(struct adapter *padapter); ...@@ -236,7 +234,6 @@ void rtw_hal_free_recv_priv(struct adapter *padapter);
void rtw_hal_update_ra_mask(struct adapter *padapter, u32 mac_id, u8 level); void rtw_hal_update_ra_mask(struct adapter *padapter, u32 mac_id, u8 level);
void rtw_hal_clone_data(struct adapter *dst_adapt, void rtw_hal_clone_data(struct adapter *dst_adapt,
struct adapter *src_adapt); struct adapter *src_adapt);
void rtw_hal_stop_thread(struct adapter *padapter);
void rtw_hal_bcn_related_reg_setting(struct adapter *padapter); void rtw_hal_bcn_related_reg_setting(struct adapter *padapter);
......
...@@ -439,7 +439,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc); ...@@ -439,7 +439,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc);
void rtl8188e_read_chip_version(struct adapter *padapter); void rtl8188e_read_chip_version(struct adapter *padapter);
void rtl8188e_clone_haldata(struct adapter *dst, struct adapter *src); void rtl8188e_clone_haldata(struct adapter *dst, struct adapter *src);
void rtl8188e_stop_thread(struct adapter *padapter);
void rtw_IOL_cmd_tx_pkt_buf_dump(struct adapter *Adapter, int len); void rtw_IOL_cmd_tx_pkt_buf_dump(struct adapter *Adapter, int len);
s32 rtl8188e_iol_efuse_patch(struct adapter *padapter); s32 rtl8188e_iol_efuse_patch(struct adapter *padapter);
......
...@@ -742,8 +742,6 @@ void rtw_stop_drv_threads(struct adapter *padapter) ...@@ -742,8 +742,6 @@ void rtw_stop_drv_threads(struct adapter *padapter)
up(&padapter->cmdpriv.cmd_queue_sema); up(&padapter->cmdpriv.cmd_queue_sema);
if (padapter->cmdThread) if (padapter->cmdThread)
_rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);
rtw_hal_stop_thread(padapter);
} }
static u8 rtw_init_default_value(struct adapter *padapter) static u8 rtw_init_default_value(struct adapter *padapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment