mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 20:44:32 +08:00
net: amd8111e: Drop unused copy of pm_cap
The copy of pdev->pm_cap in struct amd8111e_priv is never used. Drop it. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240325220633.1453180-1-helgaas@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
341ee1a584
commit
ee36b1e93b
@ -1796,7 +1796,6 @@ static int amd8111e_probe_one(struct pci_dev *pdev,
|
||||
lp = netdev_priv(dev);
|
||||
lp->pci_dev = pdev;
|
||||
lp->amd8111e_net_dev = dev;
|
||||
lp->pm_cap = pdev->pm_cap;
|
||||
|
||||
spin_lock_init(&lp->lock);
|
||||
|
||||
|
@ -764,7 +764,6 @@ struct amd8111e_priv{
|
||||
u32 ext_phy_id;
|
||||
|
||||
struct amd8111e_link_config link_config;
|
||||
int pm_cap;
|
||||
|
||||
struct net_device *next;
|
||||
int mii;
|
||||
|
Loading…
Reference in New Issue
Block a user