Skip to contentSkip to conversation

staging: rtl8192e: fixed pointer error by adding '*'

PATCH Superseded Mitali Borkar 2 participants 2 messages Apr 10, 2021 Staging

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: rtl8192e: fixed pointer error by adding '*'

Fixed pointer error by adding '*' to the function. Reported by Julia.

---
Changes from v2:- modified patch body but writing commit message clearly.
Changes from v1:- added pointer to the function.

 drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl819x_TSProc.c +1 -1
index 4457c1acfbf6..78b5b4eaec5f 100644
@@ -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) {
Signature · 1 line
2.30.2
#1 lore raw
Quoted 2 lines · Mitali Borkar

Fixed pointer error by adding '*' to the function. Reported by Julia.

Actually, there is a proper tag for reported by, like Signed-off-by. Look through the git history to see what to do.

julia

Quoted 31 lines

---
Changes from v2:- modified patch body but writing commit message clearly.
Changes from v1:- added pointer to the function.

 drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl819x_TSProc.c +1 -2
index 4457c1acfbf6..78b5b4eaec5f 100644
@@ -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

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/YHGvJxMhQ8nzHf6I%40kali.