aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-09-02 06:30:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:15 -0400
commitff8ac60948ba819b89e9c87083e8050fc2f89999 (patch)
tree611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/ixgb
parent10d024c1b2fd58af8362670d7d6e5ae52fc33353 (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')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c3
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
100static int 99static int
101ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) 100ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)