projects/linux·commit bf9c95f3

staging: rtl8723bs: remove redundant & parentheses

bf9c95f3 · Sam Daly <[email protected]> · 2026-04-03 19:28:39 +02:00

Remove redundant parentheses around the '&' operator to comply with
kernel style guidelines, as reported by checkpatch:
CHECK: Unnecessary parentheses around adapter->securitypriv

Signed-off-by: Sam Daly <[email protected]>
Reviewed-by: Ethan Tidmore <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Commit
bf9c95f3eeefb7fc4b4a6380cc23f1dca744e379
Parents
e8794666

Changes

1 files changed · +2 −2

FileStatusAddDelContent
drivers/staging/rtl8723bs/core/rtw_security.cmodified+2−2View file

drivers/staging/rtl8723bs/core/rtw_security.c

View file
diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 4edcbd9..a00504f 100644
--- a/drivers/staging/rtl8723bs/core/rtw_security.c
+++ b/drivers/staging/rtl8723bs/core/rtw_security.c
@@ -1456,7 +1456,7 @@ int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac)
/* Restore HW wep key setting according to key_mask */
void rtw_sec_restore_wep_key(struct adapter *adapter)
{
- struct security_priv *securitypriv = &(adapter->securitypriv);
+ struct security_priv *securitypriv = &adapter->securitypriv;
signed int keyid;
if ((securitypriv->dot11PrivacyAlgrthm == _WEP40_) || (securitypriv->dot11PrivacyAlgrthm == _WEP104_)) {
@@ -1473,7 +1473,7 @@ void rtw_sec_restore_wep_key(struct adapter *adapter)
u8 rtw_handle_tkip_countermeasure(struct adapter *adapter, const char *caller)
{
- struct security_priv *securitypriv = &(adapter->securitypriv);
+ struct security_priv *securitypriv = &adapter->securitypriv;
u8 status = _SUCCESS;
if (securitypriv->btkip_countermeasure) {