All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 07/11] ethernet: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11  0:56 Jim Cromie
  2012-04-13 17:15 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2012-04-11  0:56 UTC (permalink / raw)
  To: netdev, davem, jeffrey.t.kirsher, joe, florian, netdev
  Cc: trivial, Jim Cromie


Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
 drivers/net/ethernet/s6gmac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/s6gmac.c b/drivers/net/ethernet/s6gmac.c
index 1895605..8e9fda0 100644
--- a/drivers/net/ethernet/s6gmac.c
+++ b/drivers/net/ethernet/s6gmac.c
@@ -937,7 +937,7 @@ static struct net_device_stats *s6gmac_stats(struct net_device *dev)
 	do {
 		unsigned long flags;
 		spin_lock_irqsave(&pd->lock, flags);
-		for (i = 0; i < sizeof(pd->stats) / sizeof(unsigned long); i++)
+		for (i = 0; i < ARRAY_SIZE(pd->stats); i++)
 			pd->stats[i] =
 				pd->carry[i] << (S6_GMAC_STAT_SIZE_MIN - 1);
 		s6gmac_stats_collect(pd, &statinf[0][0]);
-- 
1.7.8.1

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

* Re: [PATCH 07/11] ethernet: replace open-coded ARRAY_SIZE with macro
  2012-04-11  0:56 [PATCH 07/11] ethernet: replace open-coded ARRAY_SIZE with macro Jim Cromie
@ 2012-04-13 17:15 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-13 17:15 UTC (permalink / raw)
  To: jim.cromie; +Cc: netdev, jeffrey.t.kirsher, joe, florian, netdev, trivial

From: Jim Cromie <jim.cromie@gmail.com>
Date: Tue, 10 Apr 2012 18:56:22 -0600

> Signed-off-by: Jim Cromie <jim.cromie@gmail.com>

Applied.

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

end of thread, other threads:[~2012-04-13 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  0:56 [PATCH 07/11] ethernet: replace open-coded ARRAY_SIZE with macro Jim Cromie
2012-04-13 17:15 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.