netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: icplus: fix typo in constant name
@ 2015-06-29 22:40 Nik Nyby
  2015-06-29 22:58 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Nik Nyby @ 2015-06-29 22:40 UTC (permalink / raw)
  To: romieu, sorbica, netdev, trivial; +Cc: Nik Nyby

This fixes a typo in the IPG_FRAMETOOLONGERRORS constant.

Signed-off-by: Nik Nyby <nikolas@gnu.org>
---
 drivers/net/ethernet/icplus/ipg.c | 2 +-
 drivers/net/ethernet/icplus/ipg.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c
index ff29036..c3b6af8 100644
--- a/drivers/net/ethernet/icplus/ipg.c
+++ b/drivers/net/ethernet/icplus/ipg.c
@@ -1028,7 +1028,7 @@ static struct net_device_stats *ipg_nic_get_stats(struct net_device *dev)
 
 	/* detailed rx_errors */
 	sp->stats.rx_length_errors += ipg_r16(IPG_INRANGELENGTHERRORS) +
-		ipg_r16(IPG_FRAMETOOLONGERRRORS);
+		ipg_r16(IPG_FRAMETOOLONGERRORS);
 	sp->stats.rx_crc_errors += ipg_r16(IPG_FRAMECHECKSEQERRORS);
 
 	/* Unutilized IPG statistic registers. */
diff --git a/drivers/net/ethernet/icplus/ipg.h b/drivers/net/ethernet/icplus/ipg.h
index a21e4f5..de60628 100644
--- a/drivers/net/ethernet/icplus/ipg.h
+++ b/drivers/net/ethernet/icplus/ipg.h
@@ -102,7 +102,7 @@ enum ipg_regs {
 #define	IPG_MCSTFRAMESRCVDOK		0xB8
 #define	IPG_BCSTFRAMESRCVDOK		0xBE
 #define	IPG_MACCONTROLFRAMESRCVD	0xC6
-#define	IPG_FRAMETOOLONGERRRORS		0xC8
+#define	IPG_FRAMETOOLONGERRORS		0xC8
 #define	IPG_INRANGELENGTHERRORS		0xCA
 #define	IPG_FRAMECHECKSEQERRORS		0xCC
 #define	IPG_FRAMESLOSTRXERRORS		0xCE
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: icplus: fix typo in constant name
  2015-06-29 22:40 [PATCH] net: icplus: fix typo in constant name Nik Nyby
@ 2015-06-29 22:58 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-06-29 22:58 UTC (permalink / raw)
  To: nikolas; +Cc: romieu, sorbica, netdev, trivial

From: Nik Nyby <nikolas@gnu.org>
Date: Mon, 29 Jun 2015 18:40:08 -0400

> This fixes a typo in the IPG_FRAMETOOLONGERRORS constant.
> 
> Signed-off-by: Nik Nyby <nikolas@gnu.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-29 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-29 22:40 [PATCH] net: icplus: fix typo in constant name Nik Nyby
2015-06-29 22:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).