[PATCH 20/23] staging: rtl8723bs: Replace NULL pointer comparison with '!'.

From: Quytelda Kahja
Date: Tue Mar 27 2018 - 04:43:30 EST


Replace the comparison of 'precvbuf' to 'NULL' with '!precvbuf'.

Signed-off-by: Quytelda Kahja <quytelda@xxxxxxxxxxx>
---
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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;
--
2.16.3