Skip to content

Commit

Permalink
net: amd8111e: Drop unused copy of pm_cap
Browse files Browse the repository at this point in the history
The copy of pdev->pm_cap in struct amd8111e_priv is never used.  Drop it.

Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
bjorn-helgaas authored and kuba-moo committed Mar 27, 2024
1 parent 341ee1a commit ee36b1e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/ethernet/amd/amd8111e.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/amd/amd8111e.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee36b1e

Please sign in to comment.