diff options
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) |