]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ethtool: remove ethtool_eee_use_linkmodes
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 5 Mar 2024 21:26:10 +0000 (22:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Mar 2024 04:40:20 +0000 (20:40 -0800)
After 292fac464b01 ("net: ethtool: eee: Remove legacy _u32 from keee")
this function has no user any longer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/b4ff9b51-092b-4d44-bfce-c95342a05b51@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/common.c
net/ethtool/common.h

index ce486cec346c80173ac31812cffbf29590e00cee..6b2a360dcdf069218becaf8cbd79ad3faefbcf90 100644 (file)
@@ -712,8 +712,3 @@ ethtool_forced_speed_maps_init(struct ethtool_forced_speed_map *maps, u32 size)
        }
 }
 EXPORT_SYMBOL_GPL(ethtool_forced_speed_maps_init);
-
-bool ethtool_eee_use_linkmodes(const struct ethtool_keee *eee)
-{
-       return !linkmode_empty(eee->supported);
-}
index 0f2b5f7eacee7434eb7a7dfeb6761356109883df..28b8aaaf9bcb3c5dcfc10be9d0d9cab1b6e5c4e1 100644 (file)
@@ -55,6 +55,5 @@ int ethtool_get_module_eeprom_call(struct net_device *dev,
                                   struct ethtool_eeprom *ee, u8 *data);
 
 bool __ethtool_dev_mm_supported(struct net_device *dev);
-bool ethtool_eee_use_linkmodes(const struct ethtool_keee *eee);
 
 #endif /* _ETHTOOL_COMMON_H */