* [PATCH] staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c
@ 2026-04-02 23:13 Hungyu Lin
2026-04-03 3:23 ` Ethan Tidmore
0 siblings, 1 reply; 2+ messages in thread
From: Hungyu Lin @ 2026-04-02 23:13 UTC (permalink / raw)
To: gregkh
Cc: linux-staging, linux-kernel, straube.linux, dan.carpenter,
ethantidmore06, Hungyu Lin
Remove redundant parentheses around &padapter->xmitpriv and
&padapter->recvpriv.
The parentheses are unnecessary and removing them improves readability.
No functional change.
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index 29939bf5a156..f97285d5bd6b 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -288,8 +288,8 @@ static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p)
static struct net_device_stats *rtw_net_get_stats(struct net_device *pnetdev)
{
struct adapter *padapter = rtw_netdev_priv(pnetdev);
- struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
- struct recv_priv *precvpriv = &(padapter->recvpriv);
+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
+ struct recv_priv *precvpriv = &padapter->recvpriv;
padapter->stats.tx_packets = pxmitpriv->tx_pkts;/* pxmitpriv->tx_pkts++; */
padapter->stats.rx_packets = precvpriv->rx_pkts;/* precvpriv->rx_pkts++; */
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c
2026-04-02 23:13 [PATCH] staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c Hungyu Lin
@ 2026-04-03 3:23 ` Ethan Tidmore
0 siblings, 0 replies; 2+ messages in thread
From: Ethan Tidmore @ 2026-04-03 3:23 UTC (permalink / raw)
To: Hungyu Lin, gregkh
Cc: linux-staging, linux-kernel, straube.linux, dan.carpenter,
ethantidmore06
On Thu Apr 2, 2026 at 6:13 PM CDT, Hungyu Lin wrote:
> Remove redundant parentheses around &padapter->xmitpriv and
> &padapter->recvpriv.
>
> The parentheses are unnecessary and removing them improves readability.
> No functional change.
>
> Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
> ---
LGTM.
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Thanks,
ET
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-03 3:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 23:13 [PATCH] staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c Hungyu Lin
2026-04-03 3:23 ` Ethan Tidmore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox