Commit 25b20f6d authored by Justin Vreeland's avatar Justin Vreeland Committed by Greg Kroah-Hartman

staging: rtl8723bs: Do not use assignment in if condition

Ensure checkpatch compliance
Signed-off-by: default avatarJustin Vreeland <justin@jvreeland.com>
Reviewed-by: default avatarBastien Nocera <hadess@hadess.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46e17f83
......@@ -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++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment