staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c
PATCH 1/1 staging: rtl8723bs: remove unnecessary parentheses in os_intfs.c
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 <[email protected]>
--- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +2 -2
@@ -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++; */
Signature · 1 line
2.34.1
Quoted 8 lines · Hungyu Lin
Remove redundant parentheses around
&padapter->xmitprivand&padapter->recvpriv.The parentheses are unnecessary and removing them improves readability. No functional change.
Signed-off-by Hungyu Lin <[email protected]>---
LGTM.
Reviewed-by Ethan Tidmore <[email protected]>
Thanks,
ET