lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210218194830.8-1-fuzzybritches@protonmail.com>
Date:   Thu, 18 Feb 2021 19:50:27 +0000
From:   Kurt Manucredo <fuzzybritches@...tonmail.com>
To:     gregkh@...uxfoundation.org, ross.schm.dev@...il.com,
        straube.linux@...il.com, dan.carpenter@...cle.com,
        d.straghkov@...ras.ru, tiwai@...e.de
Cc:     devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
        Kurt Manucredo <fuzzybritches@...tonmail.com>
Subject: [PATCH] staging: rtl8723bs: make if-statement checkpatch.pl conform

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

The preferred coding style is:
	if (!StaAddr)
	return;

thank you mr. dan carpenter

 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 975f2830e29e..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 (NULL == StaAddr)
+	if (!StaAddr)
 		return;
 	psta = rtw_get_stainfo(&padapter->stapriv, StaAddr);
 	DBG_871X("%s(): StaAddr: %02x %02x %02x %02x %02x %02x\n",
-- 
2.20.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ