From: Sam Daly <sam@samdaly.ie>
To: greg@kroah.com
Cc: gregkh@linuxfoundation.org, dan.carpenter@linaro.org,
ethantidmore06@gmail.com, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, Sam Daly <sam@samdaly.ie>
Subject: [PATCH] staging: rtl8723bs: remove redundant & parentheses
Date: Fri, 3 Apr 2026 19:28:39 +0200 [thread overview]
Message-ID: <20260403172839.367663-1-sam@samdaly.ie> (raw)
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>
---
drivers/staging/rtl8723bs/core/rtw_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 4edcbd95aab3..a00504ff2910 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) {
--
2.53.0
next reply other threads:[~2026-04-03 17:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-03 17:28 Sam Daly [this message]
2026-04-03 21:14 ` Ethan Tidmore
2026-05-31 0:41 [PATCH] staging: rtl8723bs: remove redundant parentheses Ben O'Bryan
2026-06-01 11:11 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260403172839.367663-1-sam@samdaly.ie \
--to=sam@samdaly.ie \
--cc=dan.carpenter@linaro.org \
--cc=ethantidmore06@gmail.com \
--cc=greg@kroah.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®