diff options
author | Quytelda Kahja <quytelda@tamalin.org> | 2018-03-27 01:41:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-29 11:59:29 +0200 |
commit | 9f534f7ee8558dd327f63fe07a9127eb32789065 (patch) | |
tree | 7bb9daf8e3f28ae82cdc8ae309e50a06cbad1de0 /drivers/staging | |
parent | 9ff7c1aadd1a061bd360d831415eb15438361842 (diff) |
staging: rtl8723bs: Replace NULL pointer comparison with '!'.
Replace the comparison of 'precvbuf' to 'NULL' with '!precvbuf'.
Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c index 038481655858..7a294102b63b 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c @@ -259,7 +259,7 @@ static void rtl8723bs_recv_tasklet(void *priv) do { precvbuf = rtw_dequeue_recvbuf(recv_buf_queue); - if (NULL == precvbuf) + if (!precvbuf) break; ptr = precvbuf->pdata; |