From: Florian Fainelli Date: Wed, 11 Apr 2012 07:18:39 +0000 (+0000) Subject: r6040: fix typo on stats update in tx path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3440ecc4538b7e833b979af9caec613c984b2302;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 9ffbf6e39b32..db33573efcf6 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++;