Skip to contentSkip to conversation

staging: rtl8723bs: core: Change NULL comparison to Boolean negation

PATCH New Nishka Dasgupta 1 participant 1 message Mar 21, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: core: Change NULL comparison to Boolean negation

Change NULL comparison to Boolean negation. Issue found with Coccinelle using matchnull.cocci.

---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +2 -6
index cbbfef389874..18fabf5ff44b 100644
@@ -782,12 +782,8 @@ void start_bss_network(struct adapter *padapter, u8 *pbuf)
 	/* check if there is wps ie, */
 	/* if there is wpsie in beacon, the hostapd will update beacon twice when stating hostapd, */
 	/* and at first time the security ie (RSN/WPA IE) will not include in beacon. */
-	if (NULL == rtw_get_wps_ie(
-		pnetwork->IEs+_FIXED_IE_LENGTH_,
-		pnetwork->IELength-_FIXED_IE_LENGTH_,
-		NULL,
-		NULL
-	))
+	if (!rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_,
+			    pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL))
 		pmlmeext->bstart_bss = true;
 
 	/* todo: update wmm, ht cap */
Signature · 1 line
2.19.1