net: phy: c45: don't use temporary linkmode bitmaps in genphy_c45_ethtool_get_eee
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 12 Nov 2024 20:33:11 +0000 (21:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Nov 2024 02:50:11 +0000 (18:50 -0800)
commit3bf8163a36adb550536c0de8ae00685f050edf53
treee9426644d77248f8865619f81885fed85b092090
parent6b998404c71ecff9ebeed343c1ce21f9df3ef131
net: phy: c45: don't use temporary linkmode bitmaps in genphy_c45_ethtool_get_eee

genphy_c45_eee_is_active() populates both bitmaps only if it returns
successfully. So we can avoid the overhead of the temporary bitmaps.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/b0832102-28ab-4223-b879-91fb1fc11278@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c