diff mbox series

[net-next] cxgb4: remove unused vpd_cap_addr

Message ID 55c53828-1071-1bdb-6a47-c1f41e3f83d1@gmail.com (mailing list archive)
State Accepted
Commit 4429c5fc3dbd5c6f385860526e5fb5a862d4ea8c
Delegated to: Netdev Maintainers
Headers show
Series [net-next] cxgb4: remove unused vpd_cap_addr | expand

Checks

Context Check Description
netdev/apply success Patch already applied to net-next
netdev/tree_selection success Clearly marked for net-next

Commit Message

Heiner Kallweit Feb. 8, 2021, 8:26 p.m. UTC
It is likely that this is a leftover from T3 driver heritage. cxgb4 uses
the PCI core VPD access code that handles detection of VPD capabilities.

Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
- resend after dropping patches 2 and 3 from the series
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h      | 1 -
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 --
 2 files changed, 3 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 9, 2021, 12:10 a.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Mon, 8 Feb 2021 21:26:07 +0100 you wrote:
> It is likely that this is a leftover from T3 driver heritage. cxgb4 uses
> the PCI core VPD access code that handles detection of VPD capabilities.
> 
> Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> - resend after dropping patches 2 and 3 from the series
> 
> [...]

Here is the summary with links:
  - [net-next] cxgb4: remove unused vpd_cap_addr
    https://git.kernel.org/netdev/net-next/c/4429c5fc3dbd

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 8e681ce72..314f8d806 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -414,7 +414,6 @@  struct pf_resources {
 };
 
 struct pci_params {
-	unsigned int vpd_cap_addr;
 	unsigned char speed;
 	unsigned char width;
 };
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 9f1965c80..6264bc66a 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -3201,8 +3201,6 @@  static void cxgb4_mgmt_fill_vf_station_mac_addr(struct adapter *adap)
 	int err;
 	u8 *na;
 
-	adap->params.pci.vpd_cap_addr = pci_find_capability(adap->pdev,
-							    PCI_CAP_ID_VPD);
 	err = t4_get_raw_vpd_params(adap, &adap->params.vpd);
 	if (err)
 		return;