cxgb4: remove unused vpd_cap_addr
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 8 Feb 2021 20:26:07 +0000 (21:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Feb 2021 23:58:03 +0000 (15:58 -0800)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

index 8e681ce..314f8d8 100644 (file)
@@ -414,7 +414,6 @@ struct pf_resources {
 };
 
 struct pci_params {
-       unsigned int vpd_cap_addr;
        unsigned char speed;
        unsigned char width;
 };
index 9f1965c..6264bc6 100644 (file)
@@ -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;