staging: r8723au: move constant to right of comparison test
authorAlison Schofield <amsfield22@gmail.com>
Wed, 21 Oct 2015 06:08:27 +0000 (23:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:41:27 +0000 (19:41 -0700)
Move constant to right of comparison test to improve readability.

Addresses checkpatch.pl:
WARNING: Comparisons should place the constant on the
right side of the test

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c

index d3479e1..f8f6376 100644 (file)
@@ -621,7 +621,7 @@ int rtw_disassoc_cmd23a(struct rtw_adapter *padapter, u32 deauth_timeout_ms,
        } else {
                /* no need to enqueue, do the cmd hdl directly and
                   free cmd parameter */
-               if (H2C_SUCCESS != disconnect_hdl23a(padapter, (u8 *)param))
+               if (disconnect_hdl23a(padapter, (u8 *)param) != H2C_SUCCESS)
                        res = _FAIL;
                kfree(param);
        }