mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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:
parent
6dcb1b00ca
commit
68152d433f
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user