From 9f534f7ee8558dd327f63fe07a9127eb32789065 Mon Sep 17 00:00:00 2001 From: Quytelda Kahja Date: Tue, 27 Mar 2018 01:41:12 -0700 Subject: [PATCH] staging: rtl8723bs: Replace NULL pointer comparison with '!'. Replace the comparison of 'precvbuf' to 'NULL' with '!precvbuf'. Signed-off-by: Quytelda Kahja Signed-off-by: Greg Kroah-Hartman --- 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;