driverdev-devel.linuxdriverproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Staging: rtl8723bs: code-style fix
@ 2021-02-18 16:33 Kurt Manucredo
  2021-02-18 17:46 ` Greg KH
  2021-02-19  6:57 ` Dan Carpenter
  0 siblings, 2 replies; 3+ messages in thread
From: Kurt Manucredo @ 2021-02-18 16:33 UTC (permalink / raw)
  To: gregkh, ross.schm.dev, straube.linux, dan.carpenter, d.straghkov, tiwai
  Cc: devel, linux-kernel, Kurt Manucredo

Signed-off-by: Kurt Manucredo <fuzzybritches@protonmail.com>
---

Checkpatch complains the constant needs to be on the right side of the
comparison. The preferred way is: 

 drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 089c6ec19373..96feced698ac 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -2146,7 +2146,7 @@ void rtw_get_sec_iv(struct adapter *padapter, u8 *pcur_dot11txpn, u8 *StaAddr)
 	struct security_priv *psecpriv = &padapter->securitypriv;
 
 	memset(pcur_dot11txpn, 0, 8);
-	if (StaAddr == NULL)
+	if (!StaAddr)
 		return;
 	psta = rtw_get_stainfo(&padapter->stapriv, StaAddr);
 	DBG_871X("%s(): StaAddr: %02x %02x %02x %02x %02x %02x\n",
-- 
2.20.1


_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-19  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 16:33 [PATCH] Staging: rtl8723bs: code-style fix Kurt Manucredo
2021-02-18 17:46 ` Greg KH
2021-02-19  6:57 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).