mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
staging: rtl8723bs: Remove rtw_btcoex_ConnectNotify()
Remove function rtw_btcoex_ConnectNotify as all it does is call hal_btcoex_ConnectNotify. Modify call sites accordingly. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190701091817.12759-8-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5355735196
commit
8739e064de
3 changed files with 2 additions and 8 deletions
|
@ -14,11 +14,6 @@ void rtw_btcoex_ScanNotify(struct adapter *padapter, u8 type)
|
||||||
hal_btcoex_ScanNotify(padapter, type);
|
hal_btcoex_ScanNotify(padapter, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_btcoex_ConnectNotify(struct adapter *padapter, u8 action)
|
|
||||||
{
|
|
||||||
hal_btcoex_ConnectNotify(padapter, action);
|
|
||||||
}
|
|
||||||
|
|
||||||
void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus)
|
void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus)
|
||||||
{
|
{
|
||||||
if ((mediaStatus == RT_MEDIA_CONNECT)
|
if ((mediaStatus == RT_MEDIA_CONNECT)
|
||||||
|
|
|
@ -3885,11 +3885,11 @@ void SetHwReg8723B(struct adapter *padapter, u8 variable, u8 *val)
|
||||||
switch (*val) {
|
switch (*val) {
|
||||||
case 0:
|
case 0:
|
||||||
/* prepare to join */
|
/* prepare to join */
|
||||||
rtw_btcoex_ConnectNotify(padapter, true);
|
hal_btcoex_ConnectNotify(padapter, true);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
/* joinbss_event callback when join res < 0 */
|
/* joinbss_event callback when join res < 0 */
|
||||||
rtw_btcoex_ConnectNotify(padapter, false);
|
hal_btcoex_ConnectNotify(padapter, false);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
/* sta add event callback */
|
/* sta add event callback */
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#define PACKET_EAPOL 3
|
#define PACKET_EAPOL 3
|
||||||
|
|
||||||
void rtw_btcoex_ScanNotify(struct adapter *, u8 type);
|
void rtw_btcoex_ScanNotify(struct adapter *, u8 type);
|
||||||
void rtw_btcoex_ConnectNotify(struct adapter *, u8 action);
|
|
||||||
void rtw_btcoex_MediaStatusNotify(struct adapter *, u8 mediaStatus);
|
void rtw_btcoex_MediaStatusNotify(struct adapter *, u8 mediaStatus);
|
||||||
void rtw_btcoex_BtInfoNotify(struct adapter *, u8 length, u8 *tmpBuf);
|
void rtw_btcoex_BtInfoNotify(struct adapter *, u8 length, u8 *tmpBuf);
|
||||||
void rtw_btcoex_HaltNotify(struct adapter *);
|
void rtw_btcoex_HaltNotify(struct adapter *);
|
||||||
|
|
Loading…
Reference in a new issue