diff options
Diffstat (limited to 'drivers/net/atl1/atl1_hw.c')
-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 */ |