From nobody Fri Apr 17 07:44:18 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B07A41B4223 for ; Sun, 22 Feb 2026 07:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771745242; cv=none; b=bY4nx1Fx7sDL6b/6f0ibLr/eo3zdjWrNpjdN6nraVHrsoqxyTBcV963zJSggsKZM9l5q3mhOXhz8opAB05vVU1oScDIl66rwYs4DaV6YIARjtUzE3xJ0IaF+YYX6FVDSvz9zzjkLOOqKgMvUhzWz9QgFz7Hb/EW/fHYUjWUdNDU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771745242; c=relaxed/simple; bh=RM+L5yF//fEHaiwweMuaZLU773hi0GitczABJVd1S4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TO+DNqa3n5m1an0EPC1Aut9Bj8uPJj2nb2HfRAa5A8m5AQJ+QRkpbgPN2JItxU6V0kBvw+Wxf2dSWrIxgR6NK6bqEKAfKnYuJ8Vw4sZgUxfpHmGkabxsdhjmobavyrQ2AoVhhZvcXYHHdnDiH1ydVQwk+7rf7bLMBjJmvHFCOFU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=oD+T6YDx; arc=none smtp.client-ip=117.135.210.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="oD+T6YDx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=pY M2Uwg7yhzl5I+iNy1TEwWgvJncg45hVau/5FY+7A8=; b=oD+T6YDxaZIwqobiFx s5GpJFpajwEOpC/sdOfR2tnxZanyBSNEOIkT7PHm5MOLTFXOefLtcOwzk4hu802W gNeuY9QYUqoz2QxmZFELeM5/j8QFlPjbvCSohH4epomBzlmLtZkGBbuo/44xglfJ 1ZbIc11MpfbCNZRqV0mwTcfpk= Received: from ubuntu24.. (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wC3CJmvr5ppRC7vMA--.24557S2; Sun, 22 Feb 2026 15:26:40 +0800 (CST) From: Yan Pan To: Greg Kroah-Hartman Cc: Michael Straube , Hans de Goede , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Yan Pan Subject: [PATCH] staging: rtl8723bs: remove unnecessary parentheses Date: Sun, 22 Feb 2026 15:26:32 +0800 Message-ID: <20260222072632.2931217-1-maxwell2119@163.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wC3CJmvr5ppRC7vMA--.24557S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3AryDWrykAw17Kw1rAF18Krg_yoWxXw1fpF 4rX343C3y8Zr4I9r4DKF4j9w4Sq3W0gFyqyFZ3Kw1rCF13Ar1jgF18tF40vrn8tFWkAanx Was8W34Duw4jyrUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRl1vcUUUUU= X-CM-SenderInfo: 5pd04v1oosiiqz6rljoofrz/xtbC+RAZfWmar7DBvQAA3d Content-Type: text/plain; charset="utf-8" Remove unnecessary parentheses around variables and struct members in rtw_sta_mgt.c to comply with the Linux kernel coding style. This issue was reported by checkpatch.pl. Signed-off-by: Yan Pan --- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging= /rtl8723bs/core/rtw_sta_mgt.c index bdd4b6d8fd2e..9d222ae87d79 100644 --- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c +++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c @@ -79,7 +79,7 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) for (i =3D 0; i < NUM_STA; i++) { _rtw_init_stainfo(psta); =20 - INIT_LIST_HEAD(&(pstapriv->sta_hash[i])); + INIT_LIST_HEAD(&pstapriv->sta_hash[i]); =20 list_add_tail(&psta->list, get_list_head(&pstapriv->free_sta_queue)); =20 @@ -149,7 +149,7 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv) /*delete all reordering_ctrl_timer */ spin_lock_bh(&pstapriv->sta_hash_lock); for (index =3D 0; index < NUM_STA; index++) { - phead =3D &(pstapriv->sta_hash[index]); + phead =3D &pstapriv->sta_hash[index]; list_for_each(plist, phead) { int i; =20 @@ -186,15 +186,15 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *p= stapriv, u8 *hwaddr) pfree_sta_queue =3D &pstapriv->free_sta_queue; =20 /* spin_lock_bh(&(pfree_sta_queue->lock)); */ - spin_lock_bh(&(pstapriv->sta_hash_lock)); + spin_lock_bh(&pstapriv->sta_hash_lock); if (list_empty(&pfree_sta_queue->queue)) { /* spin_unlock_bh(&(pfree_sta_queue->lock)); */ - spin_unlock_bh(&(pstapriv->sta_hash_lock)); + spin_unlock_bh(&pstapriv->sta_hash_lock); return NULL; } psta =3D container_of(get_next(&pfree_sta_queue->queue), struct sta_info,= list); =20 - list_del_init(&(psta->list)); + list_del_init(&psta->list); =20 /* spin_unlock_bh(&(pfree_sta_queue->lock)); */ =20 @@ -207,11 +207,11 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *p= stapriv, u8 *hwaddr) index =3D wifi_mac_hash(hwaddr); =20 if (index >=3D NUM_STA) { - spin_unlock_bh(&(pstapriv->sta_hash_lock)); + spin_unlock_bh(&pstapriv->sta_hash_lock); psta =3D NULL; goto exit; } - phash_list =3D &(pstapriv->sta_hash[index]); + phash_list =3D &pstapriv->sta_hash[index]; =20 /* spin_lock_bh(&(pstapriv->sta_hash_lock)); */ =20 @@ -258,7 +258,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pst= apriv, u8 *hwaddr) =20 /* init for the sequence number of received management frame */ psta->RxMgmtFrameSeqNum =3D 0xffff; - spin_unlock_bh(&(pstapriv->sta_hash_lock)); + spin_unlock_bh(&pstapriv->sta_hash_lock); /* alloc mac id for non-bc/mc station, */ rtw_alloc_macid(pstapriv->padapter, psta); =20 @@ -300,7 +300,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct s= ta_info *psta) /* vo */ /* spin_lock_bh(&(pxmitpriv->vo_pending.lock)); */ rtw_free_xmitframe_queue(pxmitpriv, &pstaxmitpriv->vo_q.sta_pending); - list_del_init(&(pstaxmitpriv->vo_q.tx_pending)); + list_del_init(&pstaxmitpriv->vo_q.tx_pending); phwxmit =3D pxmitpriv->hwxmits; phwxmit->accnt -=3D pstaxmitpriv->vo_q.qcnt; pstaxmitpriv->vo_q.qcnt =3D 0; @@ -309,7 +309,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct s= ta_info *psta) /* vi */ /* spin_lock_bh(&(pxmitpriv->vi_pending.lock)); */ rtw_free_xmitframe_queue(pxmitpriv, &pstaxmitpriv->vi_q.sta_pending); - list_del_init(&(pstaxmitpriv->vi_q.tx_pending)); + list_del_init(&pstaxmitpriv->vi_q.tx_pending); phwxmit =3D pxmitpriv->hwxmits + 1; phwxmit->accnt -=3D pstaxmitpriv->vi_q.qcnt; pstaxmitpriv->vi_q.qcnt =3D 0; @@ -318,7 +318,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct s= ta_info *psta) /* be */ /* spin_lock_bh(&(pxmitpriv->be_pending.lock)); */ rtw_free_xmitframe_queue(pxmitpriv, &pstaxmitpriv->be_q.sta_pending); - list_del_init(&(pstaxmitpriv->be_q.tx_pending)); + list_del_init(&pstaxmitpriv->be_q.tx_pending); phwxmit =3D pxmitpriv->hwxmits + 2; phwxmit->accnt -=3D pstaxmitpriv->be_q.qcnt; pstaxmitpriv->be_q.qcnt =3D 0; @@ -327,7 +327,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct s= ta_info *psta) /* bk */ /* spin_lock_bh(&(pxmitpriv->bk_pending.lock)); */ rtw_free_xmitframe_queue(pxmitpriv, &pstaxmitpriv->bk_q.sta_pending); - list_del_init(&(pstaxmitpriv->bk_q.tx_pending)); + list_del_init(&pstaxmitpriv->bk_q.tx_pending); phwxmit =3D pxmitpriv->hwxmits + 3; phwxmit->accnt -=3D pstaxmitpriv->bk_q.qcnt; pstaxmitpriv->bk_q.qcnt =3D 0; @@ -369,7 +369,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct s= ta_info *psta) =20 plist =3D get_next(plist); =20 - list_del_init(&(prframe->u.hdr.list)); + list_del_init(&prframe->u.hdr.list); =20 rtw_free_recvframe(prframe, pfree_recv_queue); } @@ -435,7 +435,7 @@ void rtw_free_all_stainfo(struct adapter *padapter) spin_lock_bh(&pstapriv->sta_hash_lock); =20 for (index =3D 0; index < NUM_STA; index++) { - phead =3D &(pstapriv->sta_hash[index]); + phead =3D &pstapriv->sta_hash[index]; list_for_each_safe(plist, tmp, phead) { psta =3D list_entry(plist, struct sta_info, hash_list); =20 @@ -473,7 +473,7 @@ struct sta_info *rtw_get_stainfo(struct sta_priv *pstap= riv, u8 *hwaddr) =20 spin_lock_bh(&pstapriv->sta_hash_lock); =20 - phead =3D &(pstapriv->sta_hash[index]); + phead =3D &pstapriv->sta_hash[index]; list_for_each(plist, phead) { psta =3D list_entry(plist, struct sta_info, hash_list); =20 @@ -525,7 +525,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_ad= dr) struct wlan_acl_pool *pacl_list =3D &pstapriv->acl_list; struct __queue *pacl_node_q =3D &pacl_list->acl_node_q; =20 - spin_lock_bh(&(pacl_node_q->lock)); + spin_lock_bh(&pacl_node_q->lock); phead =3D get_list_head(pacl_node_q); list_for_each(plist, phead) { paclnode =3D list_entry(plist, struct rtw_wlan_acl_node, list); @@ -536,7 +536,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_ad= dr) break; } } - spin_unlock_bh(&(pacl_node_q->lock)); + spin_unlock_bh(&pacl_node_q->lock); =20 if (pacl_list->mode =3D=3D 1) /* accept unless in deny list */ res =3D !match; --=20 2.43.0