From: Sanjana Sanikommu Date: Mon, 18 Mar 2019 12:56:45 +0000 (+0530) Subject: Staging: rtl8188eu: core: rtw_pwrctrl.c: Fix a comparision warning. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7af91810209f1a3ddd56f2f898c2cd94399b1d93;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c index 6a846d08d4491..7b16632048b7d 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) &&