Staging: rtl8188eu: core: rtw_pwrctrl.c: Fix a comparision warning.
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Mon, 18 Mar 2019 12:56:45 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 17:53:16 +0000 (18:53 +0100)
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>
drivers/staging/rtl8188eu/core/rtw_pwrctrl.c

index 6a846d0..7b16632 100644 (file)
@@ -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) &&