Commit 534415d2 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8723bs: core: Remove wrapper functions

Remove function power_saving_wk_hdl as all it does is call
rtw_ps_processor. Edit call sites accordingly.
Remove function reset_securitypriv_hdl as all it does is call
rtw_reset_securitypriv. Modify call sites accordingly.
Remove function free_assoc_resources_hdl as all it does is call
rtw_free_assoc_resources with one extra constant argument, and the
former is only called once.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 183eb53d
...@@ -1660,22 +1660,6 @@ u8 rtw_dm_ra_mask_wk_cmd(struct adapter *padapter, u8 *psta) ...@@ -1660,22 +1660,6 @@ u8 rtw_dm_ra_mask_wk_cmd(struct adapter *padapter, u8 *psta)
} }
static void power_saving_wk_hdl(struct adapter *padapter)
{
rtw_ps_processor(padapter);
}
/* add for CONFIG_IEEE80211W, none 11w can use it */
static void reset_securitypriv_hdl(struct adapter *padapter)
{
rtw_reset_securitypriv(padapter);
}
static void free_assoc_resources_hdl(struct adapter *padapter)
{
rtw_free_assoc_resources(padapter, 1);
}
u8 rtw_ps_cmd(struct adapter *padapter) u8 rtw_ps_cmd(struct adapter *padapter)
{ {
struct cmd_obj *ppscmd; struct cmd_obj *ppscmd;
...@@ -1977,7 +1961,7 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) ...@@ -1977,7 +1961,7 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf)
dynamic_chk_wk_hdl(padapter); dynamic_chk_wk_hdl(padapter);
break; break;
case POWER_SAVING_CTRL_WK_CID: case POWER_SAVING_CTRL_WK_CID:
power_saving_wk_hdl(padapter); rtw_ps_processor(padapter);
break; break;
case LPS_CTRL_WK_CID: case LPS_CTRL_WK_CID:
lps_ctrl_wk_hdl(padapter, (u8)pdrvextra_cmd->type); lps_ctrl_wk_hdl(padapter, (u8)pdrvextra_cmd->type);
...@@ -1993,10 +1977,10 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) ...@@ -1993,10 +1977,10 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf)
break; break;
/* add for CONFIG_IEEE80211W, none 11w can use it */ /* add for CONFIG_IEEE80211W, none 11w can use it */
case RESET_SECURITYPRIV: case RESET_SECURITYPRIV:
reset_securitypriv_hdl(padapter); rtw_reset_securitypriv(padapter);
break; break;
case FREE_ASSOC_RESOURCES: case FREE_ASSOC_RESOURCES:
free_assoc_resources_hdl(padapter); rtw_free_assoc_resources(padapter, 1);
break; break;
case C2H_WK_CID: case C2H_WK_CID:
rtw_hal_set_hwreg_with_buf(padapter, HW_VAR_C2H_HANDLE, pdrvextra_cmd->pbuf, pdrvextra_cmd->size); rtw_hal_set_hwreg_with_buf(padapter, HW_VAR_C2H_HANDLE, pdrvextra_cmd->pbuf, pdrvextra_cmd->size);
......
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