mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
net: stmmac: remove write-only priv->speed
priv->speed is only ever written to in two locations, but never read. Therefore, it serves no useful purpose. Remove this unnecessary struct member. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/E1tqLJJ-005aQm-Mv@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
aa3e360701
commit
64fdb80866
|
|
@ -282,7 +282,6 @@ struct stmmac_priv {
|
|||
/* Generic channel for NAPI */
|
||||
struct stmmac_channel channel[STMMAC_CH_MAX];
|
||||
|
||||
int speed;
|
||||
unsigned int pause_time;
|
||||
struct mii_bus *mii;
|
||||
|
||||
|
|
|
|||
|
|
@ -1027,8 +1027,6 @@ static void stmmac_mac_link_up(struct phylink_config *config,
|
|||
}
|
||||
}
|
||||
|
||||
priv->speed = speed;
|
||||
|
||||
if (priv->plat->fix_mac_speed)
|
||||
priv->plat->fix_mac_speed(priv->plat->bsp_priv, speed, mode);
|
||||
|
||||
|
|
@ -7852,7 +7850,6 @@ int stmmac_suspend(struct device *dev)
|
|||
if (stmmac_fpe_supported(priv))
|
||||
timer_shutdown_sync(&priv->fpe_cfg.verify_timer);
|
||||
|
||||
priv->speed = SPEED_UNKNOWN;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(stmmac_suspend);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user