netdev: ARRAY_SIZE() cleanups
Convert array size calculations to use ARRAY_SIZE(). Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
David S. Miller
parent
4c3616cdda
commit
c00acf46de
@@ -4168,7 +4168,7 @@ de4x5_bad_srom(struct de4x5_private *lp)
|
||||
{
|
||||
int i, status = 0;
|
||||
|
||||
for (i=0; i<sizeof(enet_det)/ETH_ALEN; i++) {
|
||||
for (i=0; i < ARRAY_SIZE(enet_det); i++) {
|
||||
if (!de4x5_strncmp((char *)&lp->srom, (char *)&enet_det[i], 3) &&
|
||||
!de4x5_strncmp((char *)&lp->srom+0x10, (char *)&enet_det[i], 3)) {
|
||||
if (i == 0) {
|
||||
|
Reference in New Issue
Block a user