Skip to contentSkip to conversation

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

PATCH New Arnesh Banerjee 1 participant 1 message Jul 26 Staging

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index a443b3530..5a45092f9 100644
@@ -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)