diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-03-06 00:21:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 09:09:09 +0300 |
commit | 6806be3184132451a3e10cee7a52f0a8e9c4cea9 (patch) | |
tree | 6920e16562abcdd021bc6aad613a09a1546131a7 /drivers/staging/rtl8712 | |
parent | 40430f0ce24111cf616a51c704ecb371858e2028 (diff) | |
download | linux-6806be3184132451a3e10cee7a52f0a8e9c4cea9.tar.xz |
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>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/recv_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c index be970efcf645..acceb439f5e1 100644 --- a/drivers/staging/rtl8712/recv_linux.c +++ b/drivers/staging/rtl8712/recv_linux.c @@ -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; |