All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: rtl8192e: fixed pointer error by adding '*'
@ 2021-04-10 13:00 Mitali Borkar
  2021-04-10 13:14 ` Greg KH
  2021-04-10 13:23   ` Julia Lawall
  0 siblings, 2 replies; 7+ messages in thread
From: Mitali Borkar @ 2021-04-10 13:00 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, outreachy-kernel, mitali_s

Fixed Comparison to NULL can be written as '!...' by replacing it with
simpler form i.e. boolean expression. This makes code more readable
alternative.
Reported by checkpatch.

Signed-off-by: Mitali Borkar <mitaliborkar810@gmail.com>
---
Changes from v1:- added pointer to the function, which was missed during
fixing v1.

 drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c
index 4457c1acfbf6..78b5b4eaec5f 100644
--- a/drivers/staging/rtl8192e/rtl819x_TSProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c
@@ -327,7 +327,7 @@ bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS,
 	}
 
 	*ppTS = SearchAdmitTRStream(ieee, Addr, UP, TxRxSelect);
-	if (ppTS)
+	if (*ppTS)
 		return true;
 
 	if (!bAddNewTs) {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-10 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 13:00 [PATCH v2] staging: rtl8192e: fixed pointer error by adding '*' Mitali Borkar
2021-04-10 13:14 ` Greg KH
2021-04-10 13:37   ` Mitali Borkar
2021-04-10 13:48     ` Greg KH
2021-04-10 13:23 ` [Outreachy kernel] " Julia Lawall
2021-04-10 13:23   ` Julia Lawall
2021-04-10 13:26   ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.