staging: rtl8723bs: Do not use assignment in if condition
authorJustin Vreeland <justin@jvreeland.com>
Tue, 2 May 2017 00:52:54 +0000 (18:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:58 +0000 (07:41 +0200)
Ensure checkpatch compliance

Signed-off-by: Justin Vreeland <justin@jvreeland.com>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c

index d654b34..9bee2e4 100644 (file)
@@ -610,7 +610,8 @@ s32 rtl8723bs_hal_xmitframe_enqueue(
        struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
        s32 err;
 
-       if ((err = rtw_xmitframe_enqueue(padapter, pxmitframe)) != _SUCCESS) {
+       err = rtw_xmitframe_enqueue(padapter, pxmitframe);
+       if (err != _SUCCESS) {
                rtw_free_xmitframe(pxmitpriv, pxmitframe);
 
                pxmitpriv->tx_drop++;