mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
net: simplify eeecfg_mac_can_tx_lpi
Simplify the function. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/f9a4623b-b94c-466c-8733-62057c6d9a17@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a8c300ccd2
commit
6b998404c7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user