staging: rtl8723bs: Switch constant place in test
authorJavier F. Arias <jarias.linux@gmail.com>
Mon, 7 Oct 2019 03:32:05 +0000 (22:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 10:29:36 +0000 (12:29 +0200)
Switch constant place as it should be on the right side of the test.
Issue found by checkpatch.

Signed-off-by: Javier F. Arias <jarias.linux@gmail.com>
Link: https://lore.kernel.org/r/20191007033202.45czxuochtylkddf@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_xmit.c

index bc5ef56..6190ef0 100644 (file)
@@ -2992,7 +2992,7 @@ int rtw_xmit_thread(void *context)
        do {
                err = rtw_hal_xmit_thread_handler(padapter);
                flush_signals_thread();
-       } while (_SUCCESS == err);
+       } while (err == _SUCCESS);
 
        complete(&padapter->xmitpriv.terminate_xmitthread_comp);