mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
net: phy: avoid genphy_c45_ethtool_get_eee() setting eee_enabled
genphy_c45_ethtool_get_eee() is only called from phy_ethtool_get_eee(), which then calls eeecfg_to_eee(). eeecfg_to_eee() will overwrite keee.eee_enabled, so there's no point setting keee.eee_enabled in genphy_c45_ethtool_get_eee(). Remove this assignment. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://patch.msgid.link/E1tJ9J7-006LIn-Jr@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
bac3d0f21c
commit
92f7acb825
|
|
@ -1521,15 +1521,13 @@ EXPORT_SYMBOL(genphy_c45_eee_is_active);
|
|||
int genphy_c45_ethtool_get_eee(struct phy_device *phydev,
|
||||
struct ethtool_keee *data)
|
||||
{
|
||||
bool is_enabled;
|
||||
int ret;
|
||||
|
||||
ret = genphy_c45_eee_is_active(phydev, data->advertised,
|
||||
data->lp_advertised, &is_enabled);
|
||||
data->lp_advertised, NULL);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
data->eee_enabled = is_enabled;
|
||||
data->eee_active = phydev->eee_active;
|
||||
linkmode_copy(data->supported, phydev->supported_eee);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user