staging: rtl8723bs: hal:Remove comparison to NULL in rtl8723bs_xmit.c
Remove comparison to NULL in file rtl8723bs_xmit.c. Suggested by Coccinelle. Signed-off-by: Himadri Pandya <himadri18.07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3f181eb23e
commit
da80ede2e7
@ -63,7 +63,7 @@ static s32 rtl8723_dequeue_writeport(struct adapter *padapter)
|
||||
else
|
||||
pxmitbuf = dequeue_pending_xmitbuf(pxmitpriv);
|
||||
|
||||
if (pxmitbuf == NULL)
|
||||
if (!pxmitbuf)
|
||||
return true;
|
||||
|
||||
deviceId = ffaddr2deviceId(pdvobjpriv, pxmitbuf->ff_hwaddr);
|
||||
@ -283,8 +283,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
|
||||
|
||||
/* check xmit_buf size enough or not */
|
||||
txlen = txdesc_size + rtw_wlan_pkt_size(pxmitframe);
|
||||
if (
|
||||
(NULL == pxmitbuf) ||
|
||||
if( !pxmitbuf ||
|
||||
((_RND(pxmitbuf->len, 8) + txlen) > max_xmit_len) ||
|
||||
(k >= (rtw_hal_sdio_max_txoqt_free_space(padapter)-1))
|
||||
) {
|
||||
@ -307,7 +306,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
|
||||
}
|
||||
|
||||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if (pxmitbuf == NULL) {
|
||||
if (!pxmitbuf) {
|
||||
#ifdef DBG_XMIT_BUF
|
||||
DBG_871X_LEVEL(_drv_err_, "%s: xmit_buf is not enough!\n", __func__);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user