mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
staging: r8188eu: _free_pwrlock is empty
Remove the empty _free_pwrlock function and rtw_free_pwrctrl_priv, which is just a wrapper around _free_pwrlock. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210913185110.3065-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a399a88206
commit
6729e75419
@@ -371,14 +371,6 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter)
|
||||
timer_setup(&pwrctrlpriv->pwr_state_check_timer, pwr_state_check_handler, 0);
|
||||
}
|
||||
|
||||
void rtw_free_pwrctrl_priv(struct adapter *adapter)
|
||||
{
|
||||
struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv;
|
||||
|
||||
_free_pwrlock(&pwrctrlpriv->lock);
|
||||
|
||||
}
|
||||
|
||||
inline void rtw_set_ips_deny(struct adapter *padapter, u32 ms)
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||
|
||||
@@ -50,10 +50,6 @@ static inline void _init_pwrlock(struct semaphore *plock)
|
||||
sema_init(plock, 1);
|
||||
}
|
||||
|
||||
static inline void _free_pwrlock(struct semaphore *plock)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void _enter_pwrlock(struct semaphore *plock)
|
||||
{
|
||||
_rtw_down_sema(plock);
|
||||
|
||||
@@ -933,8 +933,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
|
||||
|
||||
_rtw_free_recv_priv(&padapter->recvpriv);
|
||||
|
||||
rtw_free_pwrctrl_priv(padapter);
|
||||
|
||||
rtl8188e_free_hal_data(padapter);
|
||||
|
||||
/* free the old_pnetdev */
|
||||
|
||||
Reference in New Issue
Block a user