dpaa_eth: remove duplicate increment of the tx_errors counter
authorCamelia Groza <camelia.groza@nxp.com>
Wed, 14 Mar 2018 13:37:32 +0000 (08:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:16:23 +0000 (13:16 -0400)
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>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

index 6c0679fd78b85f040e156d27053d8543b31df4cd..e4ec32a9ca1526daf07b151d69b56090bc218562 100644 (file)
@@ -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;
        }