diff options
author | 2018-03-14 08:37:32 -0500 | |
---|---|---|
committer | 2018-03-14 13:16:23 -0400 | |
commit | 82d141cd19d088ee41feafde4a6f86eeb40d93c5 (patch) | |
tree | fa926cf76dc41bb3a4773dc69e0c522ee421feab /drivers/net/ethernet/freescale | |
parent | dpaa_eth: increment the RX dropped counter when needed (diff) | |
download | linux-82d141cd19d088ee41feafde4a6f86eeb40d93c5.tar.gz linux-82d141cd19d088ee41feafde4a6f86eeb40d93c5.tar.bz2 linux-82d141cd19d088ee41feafde4a6f86eeb40d93c5.zip |
dpaa_eth: remove duplicate increment of the tx_errors counter
The tx_errors counter is incremented by the dpaa_xmit caller.
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 6c0679fd78b8..e4ec32a9ca15 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -2008,7 +2008,6 @@ static inline int dpaa_xmit(struct dpaa_priv *priv, } if (unlikely(err < 0)) { - percpu_stats->tx_errors++; percpu_stats->tx_fifo_errors++; return err; } |