staging: rtl8723bs: use !psta instead of comparison to NULL

The psta pointer was compared against NULL using an explicit equality
check. The kernel coding style prefers testing a pointer directly, so
use !psta instead. This also silences a checkpatch CHECK:

  CHECK: Comparison to NULL could be written "!psta"

No functional change.

Signed-off-by: Arnesh Banerjee <linkrinku13@gmail.com>
Link: https://patch.msgid.link/20260726232119.6392-1-linkrinku13@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Arnesh Banerjee 2026-07-27 04:51:19 +05:30 committed by Greg Kroah-Hartman
parent 6dcb1b00ca
commit 68152d433f

View File

@ -4951,7 +4951,7 @@ void linked_status_chk(struct adapter *padapter)
if (pmlmeinfo->FW_sta_info[i].status == 1) {
psta = pmlmeinfo->FW_sta_info[i].psta;
if (psta == NULL)
if (!psta)
continue;
if (pmlmeinfo->FW_sta_info[i].rx_pkt == sta_rx_pkts(psta)) {