Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 302846e3 authored by Jim Cromie's avatar Jim Cromie Committed by David S. Miller
Browse files

ethernet: replace open-coded ARRAY_SIZE with macro

parent 4133099b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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]);