lkml.org 
[lkml]   [2018]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 20/23] staging: rtl8723bs: Replace NULL pointer comparison with '!'.
Date
Replace the comparison of 'precvbuf' to 'NULL' with '!precvbuf'.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
---
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
\
 
 \ /
  Last update: 2018-03-27 10:44    [W:0.123 / U:2.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site