staging: rtl8723bs: use !psta instead of comparison to NULL
PATCH 1/1 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 <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +1 -1
@@ -4915,7 +4915,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)) {
Signature · 1 line
2.50.1 (Apple Git-155)