Skip to content

Commit

Permalink
staging: rtl8188eu: do not use comparisons on bool tests
Browse files Browse the repository at this point in the history
This patch fixes coccinelle errors regarding comparisons
used in bool tests.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
tinamanea authored and gregkh committed Oct 28, 2013
1 parent 89bc5be commit 5b66fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void rtw_ps_processor(struct adapter *padapter)
if (pwrpriv->ips_mode_req == IPS_NONE)
goto exit;

if (rtw_pwr_unassociated_idle(padapter) == false)
if (!rtw_pwr_unassociated_idle(padapter))
goto exit;

if ((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4) == 0)) {
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ void _PHY_SaveADDARegisters(struct adapter *adapt, u32 *ADDAReg, u32 *ADDABackup
struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt);
struct odm_dm_struct *dm_odm = &pHalData->odmpriv;

if (ODM_CheckPowerStatus(adapt) == false)
if (!ODM_CheckPowerStatus(adapt))
return;

ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("Save ADDA parameters.\n"));
Expand Down Expand Up @@ -888,7 +888,7 @@ _PHY_PathADDAOn(
ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("ADDA ON.\n"));

pathOn = isPathAOn ? 0x04db25a4 : 0x0b1b25a4;
if (false == is2t) {
if (!is2t) {
pathOn = 0x0bdb25a0;
ODM_SetBBReg(dm_odm, ADDAReg[0], bMaskDWord, 0x0b1b25a0);
} else {
Expand Down Expand Up @@ -1296,7 +1296,7 @@ void PHY_IQCalibrate_8188E(struct adapter *adapt, bool recovery)
bool is2t;

is2t = (dm_odm->RFType == ODM_2T2R) ? true : false;
if (ODM_CheckPowerStatus(adapt) == false)
if (!ODM_CheckPowerStatus(adapt))
return;

if (!(dm_odm->SupportAbility & ODM_RF_CALIBRATION))
Expand Down

0 comments on commit 5b66fb7

Please sign in to comment.