staging: rtl8188eu: remove unnecessary parentheses in rtw_pwrctrl.c
Remove unnecessary parentheses reported by checkpatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Link: https://lore.kernel.org/r/20191123151635.155138-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
742e9285f8
commit
1544f55add
@ -154,8 +154,8 @@ void ips_enter(struct adapter *padapter)
|
|||||||
int ips_leave(struct adapter *padapter)
|
int ips_leave(struct adapter *padapter)
|
||||||
{
|
{
|
||||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||||
struct security_priv *psecuritypriv = &(padapter->securitypriv);
|
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
int result = _SUCCESS;
|
int result = _SUCCESS;
|
||||||
int keyid;
|
int keyid;
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ int ips_leave(struct adapter *padapter)
|
|||||||
|
|
||||||
static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
||||||
{
|
{
|
||||||
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
if (time_after_eq(adapter->pwrctrlpriv.ips_deny_time, jiffies))
|
if (time_after_eq(adapter->pwrctrlpriv.ips_deny_time, jiffies))
|
||||||
@ -221,7 +221,7 @@ exit:
|
|||||||
void rtw_ps_processor(struct adapter *padapter)
|
void rtw_ps_processor(struct adapter *padapter)
|
||||||
{
|
{
|
||||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
enum rt_rf_power_state rfpwrstate;
|
enum rt_rf_power_state rfpwrstate;
|
||||||
|
|
||||||
pwrpriv->ps_processing = true;
|
pwrpriv->ps_processing = true;
|
||||||
@ -336,7 +336,7 @@ static u8 PS_RDY_CHECK(struct adapter *padapter)
|
|||||||
{
|
{
|
||||||
unsigned long curr_time, delta_time;
|
unsigned long curr_time, delta_time;
|
||||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
|
|
||||||
curr_time = jiffies;
|
curr_time = jiffies;
|
||||||
delta_time = curr_time - pwrpriv->DelayLPSLastTimeStamp;
|
delta_time = curr_time - pwrpriv->DelayLPSLastTimeStamp;
|
||||||
@ -483,7 +483,7 @@ void LPS_Leave(struct adapter *padapter)
|
|||||||
/* */
|
/* */
|
||||||
void LeaveAllPowerSaveMode(struct adapter *Adapter)
|
void LeaveAllPowerSaveMode(struct adapter *Adapter)
|
||||||
{
|
{
|
||||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
|
||||||
u8 enqueue = 0;
|
u8 enqueue = 0;
|
||||||
|
|
||||||
if (check_fwstate(pmlmepriv, _FW_LINKED))
|
if (check_fwstate(pmlmepriv, _FW_LINKED))
|
||||||
|
Loading…
Reference in New Issue
Block a user