diff options
Diffstat (limited to 'drivers/net/wireless/wavelan.c')
-rw-r--r-- | drivers/net/wireless/wavelan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wavelan.c b/drivers/net/wireless/wavelan.c index a1f8a1687842..b343ce2235eb 100644 --- a/drivers/net/wireless/wavelan.c +++ b/drivers/net/wireless/wavelan.c | |||
@@ -3740,7 +3740,7 @@ static int wv_check_ioaddr(unsigned long ioaddr, u8 * mac) | |||
3740 | * non-NCR/AT&T/Lucent ISA card. See wavelan.p.h for detail on | 3740 | * non-NCR/AT&T/Lucent ISA card. See wavelan.p.h for detail on |
3741 | * how to configure your card. | 3741 | * how to configure your card. |
3742 | */ | 3742 | */ |
3743 | for (i = 0; i < (sizeof(MAC_ADDRESSES) / sizeof(char) / 3); i++) | 3743 | for (i = 0; i < ARRAY_SIZE(MAC_ADDRESSES); i++) |
3744 | if ((mac[0] == MAC_ADDRESSES[i][0]) && | 3744 | if ((mac[0] == MAC_ADDRESSES[i][0]) && |
3745 | (mac[1] == MAC_ADDRESSES[i][1]) && | 3745 | (mac[1] == MAC_ADDRESSES[i][1]) && |
3746 | (mac[2] == MAC_ADDRESSES[i][2])) | 3746 | (mac[2] == MAC_ADDRESSES[i][2])) |