Skip to content

Commit 1625fec

Browse files
nikolasdavem330
authored andcommitted
net: icplus: fix typo in constant name
This fixes a typo in the IPG_FRAMETOOLONGERRORS constant. Signed-off-by: Nik Nyby <nikolas@gnu.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 47af6b0 commit 1625fec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/icplus/ipg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ static struct net_device_stats *ipg_nic_get_stats(struct net_device *dev)
10281028

10291029
/* detailed rx_errors */
10301030
sp->stats.rx_length_errors += ipg_r16(IPG_INRANGELENGTHERRORS) +
1031-
ipg_r16(IPG_FRAMETOOLONGERRRORS);
1031+
ipg_r16(IPG_FRAMETOOLONGERRORS);
10321032
sp->stats.rx_crc_errors += ipg_r16(IPG_FRAMECHECKSEQERRORS);
10331033

10341034
/* Unutilized IPG statistic registers. */

drivers/net/ethernet/icplus/ipg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ enum ipg_regs {
102102
#define IPG_MCSTFRAMESRCVDOK 0xB8
103103
#define IPG_BCSTFRAMESRCVDOK 0xBE
104104
#define IPG_MACCONTROLFRAMESRCVD 0xC6
105-
#define IPG_FRAMETOOLONGERRRORS 0xC8
105+
#define IPG_FRAMETOOLONGERRORS 0xC8
106106
#define IPG_INRANGELENGTHERRORS 0xCA
107107
#define IPG_FRAMECHECKSEQERRORS 0xCC
108108
#define IPG_FRAMESLOSTRXERRORS 0xCE

0 commit comments

Comments
 (0)