net: simplify eeecfg_mac_can_tx_lpi
Subsystems (2)
PATCH 1/1 net: simplify eeecfg_mac_can_tx_lpi
Simplify the function.
Signed-off-by Heiner Kallweit <[email protected]>
--- include/net/eee.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
include/net/eee.h +1 -4
@@ -13,10 +13,7 @@ struct eee_config {static inline bool eeecfg_mac_can_tx_lpi (const struct eee_config *eeecfg) {/* eee_enabled is the master on/off */ -if (!eeecfg->eee_enabled || !eeecfg->tx_lpi_enabled) -return false; - -return true; +return eeecfg->eee_enabled && eeecfg->tx_lpi_enabled; } static inline void eeecfg_to_eee(struct ethtool_keee *eee,
Signature · 1 line
2.47.0
Quoted 3 lines · Heiner Kallweit
Simplify the function.
Signed-off-by Heiner Kallweit <[email protected]>
Reviewed-by Russell King (Oracle) <[email protected]>
Thanks!
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Tue, 12 Nov 2024 21:36:29 +0100 you wrote:
Simplify the function.
Signed-off-by Heiner Kallweit <[email protected]>--- include/net/eee.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Here is the summary with links:
- [net-next] net: simplify eeecfg_mac_can_tx_lpi
https://git.kernel.org/netdev/net-next/c/6b998404c71e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html