diff options
author | Denis Cheng <crquan@gmail.com> | 2007-09-02 06:30:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:15 -0400 |
commit | ff8ac60948ba819b89e9c87083e8050fc2f89999 (patch) | |
tree | 611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/atl1 | |
parent | 10d024c1b2fd58af8362670d7d6e5ae52fc33353 (diff) |
drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/atl1')
-rw-r--r-- | drivers/net/atl1/atl1_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atl1/atl1_hw.c b/drivers/net/atl1/atl1_hw.c index ef886bdeac13..9d3bd22e3a82 100644 --- a/drivers/net/atl1/atl1_hw.c +++ b/drivers/net/atl1/atl1_hw.c | |||
@@ -603,7 +603,7 @@ static struct atl1_spi_flash_dev flash_table[] = { | |||
603 | 603 | ||
604 | static void atl1_init_flash_opcode(struct atl1_hw *hw) | 604 | static void atl1_init_flash_opcode(struct atl1_hw *hw) |
605 | { | 605 | { |
606 | if (hw->flash_vendor >= sizeof(flash_table) / sizeof(flash_table[0])) | 606 | if (hw->flash_vendor >= ARRAY_SIZE(flash_table)) |
607 | hw->flash_vendor = 0; /* ATMEL */ | 607 | hw->flash_vendor = 0; /* ATMEL */ |
608 | 608 | ||
609 | /* Init OP table */ | 609 | /* Init OP table */ |