drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
[deliverable/linux.git] / drivers / net / arm / am79c961a.c
index 2143eeb7a2b0fdf34143d8c14bfe0a623a5c7894..77964556776e0da36a6c90a90e9981d39f376635 100644 (file)
@@ -414,7 +414,7 @@ static void am79c961_setmulticastlist (struct net_device *dev)
        /*
         * Update the multicast hash table
         */
-       for (i = 0; i < sizeof(multi_hash) / sizeof(multi_hash[0]); i++)
+       for (i = 0; i < ARRAY_SIZE(multi_hash); i++)
                write_rreg(dev->base_addr, i + LADRL, multi_hash[i]);
 
        /*
This page took 0.042296 seconds and 5 git commands to generate.