mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
staging: rtl8723bs: remove redundant blank lines
Remove multiple blank lines and unnecessary blank lines before closing braces. Signed-off-by: Jose A. Perez de Azpillaga <azpijr@gmail.com> Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com> Link: https://patch.msgid.link/20260303173844.47975-2-azpijr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e65ea7fb20
commit
f3b6c0c9f0
|
|
@ -29,14 +29,12 @@ void _ips_enter(struct adapter *padapter)
|
|||
pwrpriv->rf_pwrstate = rf_off;
|
||||
}
|
||||
pwrpriv->bips_processing = false;
|
||||
|
||||
}
|
||||
|
||||
void ips_enter(struct adapter *padapter)
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||
|
||||
|
||||
hal_btcoex_IpsNotify(padapter, pwrpriv->ips_mode_req);
|
||||
|
||||
mutex_lock(&pwrpriv->lock);
|
||||
|
|
@ -131,7 +129,6 @@ static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ATTENTION:
|
||||
*rtw_ps_processor() doesn't handle LPS.
|
||||
|
|
@ -184,8 +181,6 @@ void traffic_check_for_leave_lps(struct adapter *padapter, u8 tx, u32 tx_packets
|
|||
u8 bLeaveLPS = false;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
||||
|
||||
|
||||
if (tx) { /* from tx */
|
||||
xmit_cnt += tx_packets;
|
||||
|
||||
|
|
@ -240,12 +235,10 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv)
|
|||
if (pwrpriv->rpwm == pslv ||
|
||||
(pwrpriv->rpwm >= PS_STATE_S2 && pslv >= PS_STATE_S2))
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if ((padapter->bSurpriseRemoved) || !(padapter->hw_init_completed)) {
|
||||
pwrpriv->cpwm = PS_STATE_S4;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -342,7 +335,6 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a
|
|||
if (ps_mode == PS_MODE_ACTIVE)
|
||||
return;
|
||||
|
||||
|
||||
mutex_lock(&pwrpriv->lock);
|
||||
|
||||
/* if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) */
|
||||
|
|
@ -404,7 +396,6 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms)
|
|||
u8 bAwake = false;
|
||||
s32 err = 0;
|
||||
|
||||
|
||||
start_time = jiffies;
|
||||
while (1) {
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_FWLPS_RF_ON, &bAwake);
|
||||
|
|
@ -606,7 +597,6 @@ void cpwm_int_hdl(struct adapter *padapter, struct reportpwrstate_parm *preportp
|
|||
|
||||
exit:
|
||||
mutex_unlock(&pwrpriv->lock);
|
||||
|
||||
}
|
||||
|
||||
static void cpwm_event_callback(struct work_struct *work)
|
||||
|
|
@ -626,7 +616,6 @@ static void rpwmtimeout_workitem_callback(struct work_struct *work)
|
|||
struct dvobj_priv *dvobj;
|
||||
struct pwrctrl_priv *pwrpriv;
|
||||
|
||||
|
||||
pwrpriv = container_of(work, struct pwrctrl_priv, rpwmtimeoutwi);
|
||||
dvobj = pwrctl_to_dvobj(pwrpriv);
|
||||
padapter = dvobj->if1;
|
||||
|
|
@ -683,7 +672,6 @@ static inline void unregister_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag)
|
|||
pwrctrl->alives &= ~tag;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Description:
|
||||
*Check if the fw_pwrstate is okay for I/O.
|
||||
|
|
@ -1020,7 +1008,6 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal
|
|||
if (time_before(pwrpriv->ips_deny_time, deny_time))
|
||||
pwrpriv->ips_deny_time = deny_time;
|
||||
|
||||
|
||||
if (pwrpriv->ps_processing)
|
||||
while (pwrpriv->ps_processing && jiffies_to_msecs(jiffies - start) <= 3000)
|
||||
mdelay(10);
|
||||
|
|
@ -1068,7 +1055,6 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal
|
|||
if (time_before(pwrpriv->ips_deny_time, deny_time))
|
||||
pwrpriv->ips_deny_time = deny_time;
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
int rtw_pm_set_lps(struct adapter *padapter, u8 mode)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user