diff options
author | Alejandro Martinez Ruiz <alex@flawedcode.org> | 2007-10-18 04:16:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:37 -0500 |
commit | c00acf46deb18926931ba264510353cf22b98a79 (patch) | |
tree | 7b7105d3505cb13aa0474e0bd89b23d7b9f2b958 /drivers/net/e1000e/phy.c | |
parent | 4c3616cdda0632a3d0e39069765f9ea0e6bd093e (diff) |
netdev: ARRAY_SIZE() cleanups
Convert array size calculations to use ARRAY_SIZE().
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000e/phy.c')
-rw-r--r-- | drivers/net/e1000e/phy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/e1000e/phy.c b/drivers/net/e1000e/phy.c index 793231810ae0..fc6fee112f1c 100644 --- a/drivers/net/e1000e/phy.c +++ b/drivers/net/e1000e/phy.c | |||
@@ -49,8 +49,7 @@ static const u16 e1000_igp_2_cable_length_table[] = | |||
49 | 100, 105, 109, 113, 116, 119, 122, 124, 104, 109, 114, 118, 121, | 49 | 100, 105, 109, 113, 116, 119, 122, 124, 104, 109, 114, 118, 121, |
50 | 124}; | 50 | 124}; |
51 | #define IGP02E1000_CABLE_LENGTH_TABLE_SIZE \ | 51 | #define IGP02E1000_CABLE_LENGTH_TABLE_SIZE \ |
52 | (sizeof(e1000_igp_2_cable_length_table) / \ | 52 | ARRAY_SIZE(e1000_igp_2_cable_length_table) |
53 | sizeof(e1000_igp_2_cable_length_table[0])) | ||
54 | 53 | ||
55 | /** | 54 | /** |
56 | * e1000e_check_reset_block_generic - Check if PHY reset is blocked | 55 | * e1000e_check_reset_block_generic - Check if PHY reset is blocked |