From 13ccbaebd13877985abad559edcc3313a5c7c0c1 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 11 Apr 2012 07:18:39 +0000 Subject: [PATCH] r6040: fix typo on stats update in tx path We are currently updating the rx fifo error counter in the tx path while it should have been the tx fifo error counter, fix that. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- drivers/net/ethernet/rdc/r6040.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 9ffbf6e39b323..db33573efcf62 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c @@ -605,7 +605,7 @@ static void r6040_tx(struct net_device *dev) err = ioread16(ioaddr + MLSR); if (err & 0x0200) - dev->stats.rx_fifo_errors++; + dev->stats.tx_fifo_errors++; if (err & (0x2000 | 0x4000)) dev->stats.tx_carrier_errors++; -- 2.39.5