mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 21:21:49 -04:00
staging: rtl8192e: Fix incorrect pointer check
In commit92172da23c("staging: rtl8192e: replace comparison to NULL by bool") a check was changed from looking at the data to the pointer, which was incorrect, so revert that portion of the commit to have the proper logic restored. Reported-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: Mitali Borkar <mitaliborkar810@gmail.com> Fixes:92172da23c("staging: rtl8192e: replace comparison to NULL by bool") Link: https://lore.kernel.org/r/YHG8qARLUX2KPWwI@kali Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
32abcac803
commit
26be3a5d84
@@ -329,7 +329,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) {
|
||||
|
||||
Reference in New Issue
Block a user