mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 23:48:56 -04:00
staging: rtl8188eu: Remove function c2h_evt_hdl()
c2h_evt_hdl() calls a dummy function rtw_hal_c2h_handler() to handle events, so no use of keeping it. Signed-off-by: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
20334b5e72
commit
b9f64e0c55
@@ -1808,31 +1808,6 @@ u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt)
|
||||
return res;
|
||||
}
|
||||
|
||||
static s32 c2h_evt_hdl(struct adapter *adapter, struct c2h_evt_hdr *c2h_evt, c2h_id_filter filter)
|
||||
{
|
||||
s32 ret = _FAIL;
|
||||
u8 buf[16];
|
||||
|
||||
if (!c2h_evt) {
|
||||
/* No c2h event in cmd_obj, read c2h event before handling*/
|
||||
if (c2h_evt_read(adapter, buf) == _SUCCESS) {
|
||||
c2h_evt = (struct c2h_evt_hdr *)buf;
|
||||
|
||||
if (filter && filter(c2h_evt->id) == false)
|
||||
goto exit;
|
||||
|
||||
ret = rtw_hal_c2h_handler(adapter, c2h_evt);
|
||||
}
|
||||
} else {
|
||||
if (filter && filter(c2h_evt->id) == false)
|
||||
goto exit;
|
||||
|
||||
ret = rtw_hal_c2h_handler(adapter, c2h_evt);
|
||||
}
|
||||
exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
struct drvextra_cmd_parm *pdrvextra_cmd;
|
||||
@@ -1863,9 +1838,6 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
rtw_chk_hi_queue_hdl(padapter);
|
||||
break;
|
||||
#endif /* CONFIG_88EU_AP_MODE */
|
||||
case C2H_WK_CID:
|
||||
c2h_evt_hdl(padapter, (struct c2h_evt_hdr *)pdrvextra_cmd->pbuf, NULL);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user