staging: rtl8723bs: remove redundant & parentheses
PATCH 1/1 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 <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_security.c +2 -2
@@ -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) {
Signature · 1 line
2.53.0
Quoted 6 lines · Sam Daly
Remove redundant parentheses around the '&' operator to comply with kernel style guidelines, as reported by checkpatch:
CHECK: Unnecessary parentheses aroundadapter->securityprivSigned-off-by Sam Daly <[email protected]>---
LGTM.
Reviewed-by Ethan Tidmore <[email protected]>
Thanks,
ET