drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
[deliverable/linux.git] / drivers / net / bnx2.c
index 61debba873ac4dedd287f8ca113a6ebb97414a25..f1e7204f78c9f08a8e2a7935957c0860e357a96b 100644 (file)
@@ -3492,7 +3492,7 @@ bnx2_init_nvram(struct bnx2 *bp)
        /* Determine the selected interface. */
        val = REG_RD(bp, BNX2_NVM_CFG1);
 
-       entry_count = sizeof(flash_table) / sizeof(struct flash_spec);
+       entry_count = ARRAY_SIZE(flash_table);
 
        if (val & 0x40000000) {
 
This page took 0.04351 seconds and 5 git commands to generate.