aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/broadcom/bcmsysport.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c
index a6572b51435a..c3c53f6cd9e6 100644
--- a/drivers/net/ethernet/broadcom/bcmsysport.c
+++ b/drivers/net/ethernet/broadcom/bcmsysport.c
@@ -1735,11 +1735,8 @@ static void bcm_sysport_get_stats64(struct net_device *dev,
1735 stats->tx_packets += tx_packets; 1735 stats->tx_packets += tx_packets;
1736 } 1736 }
1737 1737
1738 /* lockless update tx_bytes and tx_packets */
1739 u64_stats_update_begin(&priv->syncp);
1740 stats64->tx_bytes = stats->tx_bytes; 1738 stats64->tx_bytes = stats->tx_bytes;
1741 stats64->tx_packets = stats->tx_packets; 1739 stats64->tx_packets = stats->tx_packets;
1742 u64_stats_update_end(&priv->syncp);
1743 1740
1744 do { 1741 do {
1745 start = u64_stats_fetch_begin_irq(&priv->syncp); 1742 start = u64_stats_fetch_begin_irq(&priv->syncp);