staging: rtl8723bs: Do not use assignment in if condition

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>
This commit is contained in:
Justin Vreeland 2017-05-01 18:52:54 -06:00 committed by Greg Kroah-Hartman
parent 46e17f83f8
commit 25b20f6d83
1 changed files with 2 additions and 1 deletions

View 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++;