diff options
Diffstat (limited to 'drivers/net/mcfmii.c')
-rw-r--r-- | drivers/net/mcfmii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index 2f2269d..17a780c 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -170,7 +170,7 @@ int mii_discover_phy(struct eth_device *dev) printf("PHY @ 0x%x pass %d\n", phyno, pass); #endif - for (i = 0; (i < (sizeof(phyinfo) / sizeof(phy_info_t))) + for (i = 0; (i < ARRAY_SIZE(phyinfo)) && (phyinfo[i].phyid != 0); i++) { if (phyinfo[i].phyid == phytype) { #ifdef ET_DEBUG |