aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/ethtool.c')
-rw-r--r--drivers/net/e1000e/ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c
index 87f9da1b6b4e..b36b853bed1a 100644
--- a/drivers/net/e1000e/ethtool.c
+++ b/drivers/net/e1000e/ethtool.c
@@ -103,7 +103,7 @@ static const char e1000_gstrings_test[][ETH_GSTRING_LEN] = {
103 "Interrupt test (offline)", "Loopback test (offline)", 103 "Interrupt test (offline)", "Loopback test (offline)",
104 "Link test (on/offline)" 104 "Link test (on/offline)"
105}; 105};
106#define E1000_TEST_LEN sizeof(e1000_gstrings_test) / ETH_GSTRING_LEN 106#define E1000_TEST_LEN ARRAY_SIZE(e1000_gstrings_test)
107 107
108static int e1000_get_settings(struct net_device *netdev, 108static int e1000_get_settings(struct net_device *netdev,
109 struct ethtool_cmd *ecmd) 109 struct ethtool_cmd *ecmd)