diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-01-05 23:21:52 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-09 04:17:50 +0100 |
commit | 9b0f510971470b495a707a4475d5a065c6e4d1f6 (patch) | |
tree | 9ae97e58f1b8940e935574766fe39c268b6a9065 /drivers/net/usb | |
parent | lan743x: remove redundant statement in lan743x_ethtool_get_eee (diff) | |
download | linux-9b0f510971470b495a707a4475d5a065c6e4d1f6.tar.xz linux-9b0f510971470b495a707a4475d5a065c6e4d1f6.zip |
lan78xx: remove redundant statement in lan78xx_get_eee
eee_active is set by phy_ethtool_get_eee() already, using the same
logic plus an additional check against link speed/duplex values.
See genphy_c45_eee_is_active() for details.
So we can remove this line.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/b086b296-0a1b-42d4-8e2b-ef6682598185@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/lan78xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 5add4145d9fc..a6d653ff552a 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -1691,8 +1691,6 @@ static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata) ret = lan78xx_read_reg(dev, MAC_CR, &buf); if (buf & MAC_CR_EEE_EN_) { edata->eee_enabled = true; - edata->eee_active = !!(edata->advertised & - edata->lp_advertised); edata->tx_lpi_enabled = true; /* EEE_TX_LPI_REQ_DLY & tx_lpi_timer are same uSec unit */ ret = lan78xx_read_reg(dev, EEE_TX_LPI_REQ_DLY, &buf); |