aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/am79c961a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/arm/am79c961a.c')
-rw-r--r--drivers/net/arm/am79c961a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c
index 2143eeb7a2b0..77964556776e 100644
--- a/drivers/net/arm/am79c961a.c
+++ b/drivers/net/arm/am79c961a.c
@@ -414,7 +414,7 @@ static void am79c961_setmulticastlist (struct net_device *dev)
414 /* 414 /*
415 * Update the multicast hash table 415 * Update the multicast hash table
416 */ 416 */
417 for (i = 0; i < sizeof(multi_hash) / sizeof(multi_hash[0]); i++) 417 for (i = 0; i < ARRAY_SIZE(multi_hash); i++)
418 write_rreg(dev->base_addr, i + LADRL, multi_hash[i]); 418 write_rreg(dev->base_addr, i + LADRL, multi_hash[i]);
419 419
420 /* 420 /*