Skip to content

Commit bf9c95f

Browse files
Sam Dalygregkh
authored andcommitted
staging: rtl8723bs: remove redundant & parentheses
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>
1 parent e879466 commit bf9c95f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/staging/rtl8723bs/core/rtw_security.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac)
14561456
/* Restore HW wep key setting according to key_mask */
14571457
void rtw_sec_restore_wep_key(struct adapter *adapter)
14581458
{
1459-
struct security_priv *securitypriv = &(adapter->securitypriv);
1459+
struct security_priv *securitypriv = &adapter->securitypriv;
14601460
signed int keyid;
14611461

14621462
if ((securitypriv->dot11PrivacyAlgrthm == _WEP40_) || (securitypriv->dot11PrivacyAlgrthm == _WEP104_)) {
@@ -1473,7 +1473,7 @@ void rtw_sec_restore_wep_key(struct adapter *adapter)
14731473

14741474
u8 rtw_handle_tkip_countermeasure(struct adapter *adapter, const char *caller)
14751475
{
1476-
struct security_priv *securitypriv = &(adapter->securitypriv);
1476+
struct security_priv *securitypriv = &adapter->securitypriv;
14771477
u8 status = _SUCCESS;
14781478

14791479
if (securitypriv->btkip_countermeasure) {

0 commit comments

Comments
 (0)