drivers: staging: rtl8712: Change form of NULL comparisons
Change null comparisons of the form x == NULL to !x. This was done using Coccinelle. @@ expression e; @@ - e == NULL + !e Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
40430f0ce2
Коммит
6806be3184
|
@ -114,7 +114,7 @@ void r8712_recv_indicatepkt(struct _adapter *padapter,
|
|||
precvpriv = &(padapter->recvpriv);
|
||||
pfree_recv_queue = &(precvpriv->free_recv_queue);
|
||||
skb = precv_frame->u.hdr.pkt;
|
||||
if (skb == NULL)
|
||||
if (!skb)
|
||||
goto _recv_indicatepkt_drop;
|
||||
skb->data = precv_frame->u.hdr.rx_data;
|
||||
skb->len = precv_frame->u.hdr.len;
|
||||
|
|
Загрузка…
Ссылка в новой задаче