summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
diff options
context:
space:
mode:
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>2019-03-18 18:26:45 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-18 18:53:16 +0100
commit7af91810209f1a3ddd56f2f898c2cd94399b1d93 (patch)
tree65e9bb9d7e2c1732cd089a305953252d368c1fa2 /drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
parentf680cf503abcd74695e0803ab1a189cfa075b65c (diff)
Staging: rtl8188eu: core: rtw_pwrctrl.c: Fix a comparision warning.
Move the constant to the right side of comparision. Issue found by checkpatch.pl semantic patch results for rtw_ap.c WARNING:Comparision should place the constant on the right side of the test. Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/core/rtw_pwrctrl.c')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_pwrctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
index 6a846d08d449..7b16632048b7 100644
--- a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
@@ -374,7 +374,7 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a
}
if (pwrpriv->pwr_mode == ps_mode) {
- if (PS_MODE_ACTIVE == ps_mode)
+ if (ps_mode == PS_MODE_ACTIVE)
return;
if ((pwrpriv->smart_ps == smart_ps) &&