mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
net: stmmac: remove write-only mac->pmt
mac_device_info->pmt is only ever written, nothing reads it. Remove this struct member. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1umsf5-008vKQ-DT@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
6d598e856d
commit
49b97bc52a
|
|
@ -602,7 +602,6 @@ struct mac_device_info {
|
|||
unsigned int mcast_bits_log2;
|
||||
unsigned int rx_csum;
|
||||
unsigned int pcs;
|
||||
unsigned int pmt;
|
||||
unsigned int ps;
|
||||
unsigned int xlgmac;
|
||||
unsigned int num_vlan;
|
||||
|
|
|
|||
|
|
@ -7240,7 +7240,6 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
|
|||
priv->plat->enh_desc = priv->dma_cap.enh_desc;
|
||||
priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up &&
|
||||
!(priv->plat->flags & STMMAC_FLAG_USE_PHY_WOL);
|
||||
priv->hw->pmt = priv->plat->pmt;
|
||||
if (priv->dma_cap.hash_tb_sz) {
|
||||
priv->hw->multicast_filter_bins =
|
||||
(BIT(priv->dma_cap.hash_tb_sz) << 5);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user