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/ixgb/ixgb_ethtool.c | |
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/ixgb/ixgb_ethtool.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index 0413cd95eda7..21d35bc53906 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -94,8 +94,7 @@ static struct ixgb_stats ixgb_gstrings_stats[] = { | |||
94 | {"tx_csum_offload_errors", IXGB_STAT(hw_csum_tx_error)} | 94 | {"tx_csum_offload_errors", IXGB_STAT(hw_csum_tx_error)} |
95 | }; | 95 | }; |
96 | 96 | ||
97 | #define IXGB_STATS_LEN \ | 97 | #define IXGB_STATS_LEN ARRAY_SIZE(ixgb_gstrings_stats) |
98 | sizeof(ixgb_gstrings_stats) / sizeof(struct ixgb_stats) | ||
99 | 98 | ||
100 | static int | 99 | static int |
101 | ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) | 100 | ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) |