staging: rtl8192e: Fix incorrect pointer check
authorMitali Borkar <mitaliborkar810@gmail.com>
Sat, 10 Apr 2021 14:56:40 +0000 (20:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Apr 2021 06:36:13 +0000 (08:36 +0200)
commit26be3a5d845312bae0397b1008e766340945cb53
tree9fb2d5a49a37176d6f8f4261b172f62ac73e2457
parent32abcac8037da5dc570c22abf266cbb92eee9fc9
staging: rtl8192e: Fix incorrect pointer check

In commit 92172da23c56 ("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: 92172da23c56 ("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>
drivers/staging/rtl8192e/rtl819x_TSProc.c