Skip to contentSkip to conversation

net: amd8111e: Drop unused copy of pm_cap

PATCH Applied Bjorn Helgaas 3 participants 3 messages Mar 25, 2024 – Mar 27, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: amd8111e: Drop unused copy of pm_cap

From: Bjorn Helgaas <[email protected]>

The copy of pdev->pm_cap in struct amd8111e_priv is never used. Drop it.

---
 drivers/net/ethernet/amd/amd8111e.c | 1 -
 drivers/net/ethernet/amd/amd8111e.h | 1 -
 2 files changed, 2 deletions(-)
drivers/net/ethernet/amd/amd8111e.c +0 -1
index ea6cfc2095e1..c1b5e9a94308 100644
@@ -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);
 
drivers/net/ethernet/amd/amd8111e.h +0 -1
index 9d570adb295b..305232f5476d 100644
@@ -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;
Signature · 1 line
2.34.1
#2 lore raw
In reply to Bjorn Helgaas
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 25 Mar 2024 17:06:33 -0500 you wrote:

From: Bjorn Helgaas <[email protected]>

The copy of pdev->pm_cap in struct amd8111e_priv is never used. Drop it.

---
 drivers/net/ethernet/amd/amd8111e.c | 1 -
 drivers/net/ethernet/amd/amd8111e.h | 1 -
 2 files changed, 2 deletions(-)

Here is the summary with links:
- net: amd8111e: Drop unused copy of pm_cap

    https://git.kernel.org/netdev/net-next/c/ee36b1e93b11

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html