diff options
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r-- | drivers/net/e100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index b87402bc8308..597fd2953658 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -2369,7 +2369,7 @@ static const char e100_gstrings_test[][ETH_GSTRING_LEN] = { | |||
2369 | "Mac loopback (offline)", | 2369 | "Mac loopback (offline)", |
2370 | "Phy loopback (offline)", | 2370 | "Phy loopback (offline)", |
2371 | }; | 2371 | }; |
2372 | #define E100_TEST_LEN sizeof(e100_gstrings_test) / ETH_GSTRING_LEN | 2372 | #define E100_TEST_LEN ARRAY_SIZE(e100_gstrings_test) |
2373 | 2373 | ||
2374 | static void e100_diag_test(struct net_device *netdev, | 2374 | static void e100_diag_test(struct net_device *netdev, |
2375 | struct ethtool_test *test, u64 *data) | 2375 | struct ethtool_test *test, u64 *data) |
@@ -2431,7 +2431,7 @@ static const char e100_gstrings_stats[][ETH_GSTRING_LEN] = { | |||
2431 | "rx_flow_control_unsupported", "tx_tco_packets", "rx_tco_packets", | 2431 | "rx_flow_control_unsupported", "tx_tco_packets", "rx_tco_packets", |
2432 | }; | 2432 | }; |
2433 | #define E100_NET_STATS_LEN 21 | 2433 | #define E100_NET_STATS_LEN 21 |
2434 | #define E100_STATS_LEN sizeof(e100_gstrings_stats) / ETH_GSTRING_LEN | 2434 | #define E100_STATS_LEN ARRAY_SIZE(e100_gstrings_stats) |
2435 | 2435 | ||
2436 | static int e100_get_sset_count(struct net_device *netdev, int sset) | 2436 | static int e100_get_sset_count(struct net_device *netdev, int sset) |
2437 | { | 2437 | { |