diff options
author | Russell King (Oracle) <[email protected]> | 2024-02-04 12:13:17 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-02-07 09:03:37 -0800 |
commit | 409359c1c2ef30788477b150c8837d8714117d13 (patch) | |
tree | 03ec83a48100131f5b0140d2dee671a8aad13783 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | b573cb0a55866830586eb26ce53e1163c1580667 (diff) |
net: bcmgenet: remove eee_enabled/eee_active in bcmgenet_get_eee()
bcmgenet_get_eee() sets edata->eee_active and edata->eee_enabled from
its own copy, and then calls phy_ethtool_get_eee() which in turn will
call genphy_c45_ethtool_get_eee().
genphy_c45_ethtool_get_eee() will overwrite eee_enabled and eee_active
with its own interpretation from the PHYs settings and negotiation
result.
Therefore, setting these members in bcmgenet_get_eee() is redundant,
and can be removed. This also makes priv->eee.eee_active unnecessary,
so remove this and use a local variable where appropriate.
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions