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:
parent
46e17f83f8
commit
25b20f6d83
|
@ -610,7 +610,8 @@ s32 rtl8723bs_hal_xmitframe_enqueue(
|
||||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||||
s32 err;
|
s32 err;
|
||||||
|
|
||||||
if ((err = rtw_xmitframe_enqueue(padapter, pxmitframe)) != _SUCCESS) {
|
err = rtw_xmitframe_enqueue(padapter, pxmitframe);
|
||||||
|
if (err != _SUCCESS) {
|
||||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||||
|
|
||||||
pxmitpriv->tx_drop++;
|
pxmitpriv->tx_drop++;
|
||||||
|
|
Loading…
Reference in New Issue