]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/missing: drop _ETHTOOL_LINK_MODE_MAX 10825/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 18 Nov 2018 09:13:32 +0000 (10:13 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 18 Nov 2018 15:14:21 +0000 (16:14 +0100)
It was only used in one place, where we don't actually need it, and
it is too easy to forget to update it when adding new items to the table.
Let's just drop it.

src/basic/missing.h
src/udev/net/ethtool-util.c

index 85af7acdfe5c66b1ca9507fa90268cbe7f1c78d4..45788af9e70b4765c2fed5a246f0abc6f804d116 100644 (file)
@@ -1577,11 +1577,4 @@ enum ethtool_link_mode_bit_indices {
 #endif
 #endif
 
-/* Strictly speaking, this is not a missing field. Just for our convention. */
-#if !HAVE_ETHTOOL_LINK_MODE_FEC_NONE_BIT
-#define _ETHTOOL_LINK_MODE_MAX                       52
-#else
-#define _ETHTOOL_LINK_MODE_MAX                       (__ETHTOOL_LINK_MODE_LAST + 1)
-#endif
-
 #include "missing_syscall.h"
index 4cf6f269e32c5166fb7767c69aa530d486c54224..177b273e48694d0049256b7add6bf50eadedfcea 100644 (file)
@@ -56,7 +56,7 @@ static const char* const netdev_feature_table[_NET_DEV_FEAT_MAX] = {
         [NET_DEV_FEAT_TSO6] = "tx-tcp6-segmentation",
 };
 
-static const char* const ethtool_link_mode_bit_table[_ETHTOOL_LINK_MODE_MAX] = {
+static const char* const ethtool_link_mode_bit_table[] = {
         [ETHTOOL_LINK_MODE_10baseT_Half_BIT]           = "10baset-half",
         [ETHTOOL_LINK_MODE_10baseT_Full_BIT]           = "10baset-full",
         [ETHTOOL_LINK_MODE_100baseT_Half_BIT]          = "100baset-half",