summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/rdc
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-04-11 07:18:39 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-04-12 20:06:24 (GMT)
commit3440ecc4538b7e833b979af9caec613c984b2302 (patch)
tree534939ca4f8371aa15380e9ea707e9656faaa098 /drivers/net/ethernet/rdc
parent2fa15bbdd8a1ac096819df29db8d69b063752bee (diff)
downloadlinux-3440ecc4538b7e833b979af9caec613c984b2302.tar.xz
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 <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rdc')
-rw-r--r--drivers/net/ethernet/rdc/r6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 9ffbf6e..db33573 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++;