]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove redundant & parentheses
authorSam Daly <sam@samdaly.ie>
Fri, 3 Apr 2026 17:28:39 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Apr 2026 08:40:01 +0000 (10:40 +0200)
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 <sam@samdaly.ie>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260403172839.367663-1-sam@samdaly.ie
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c

index 4edcbd95aab3abe9cbc9befdb8d02436ba193d39..a00504ff2910982d16854f539d8f8e0738e6e446 100644 (file)
@@ -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) {