net/benet: Remove interface type
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 29 Oct 2013 09:30:56 +0000 (17:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2013 21:50:16 +0000 (17:50 -0400)
The interface type, which is being traced by "struct be_adapter::
if_type", isn't used currently. So we can remove that safely
according to Sathya's comments.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c

index b2765ebb02680650ce8e43dbee8f425a2e02291e..2c88ac295eea497102a8455f45abf769634a15a5 100644 (file)
@@ -470,7 +470,6 @@ struct be_adapter {
        u32 rx_fc;              /* Rx flow control */
        u32 tx_fc;              /* Tx flow control */
        bool stats_cmd_sent;
-       u32 if_type;
        struct {
                u32 size;
                u32 total_size;
index 03e0c74f2516c233989a0ffff2985bf0b74a83b9..8080a1a5cee777d01adfc1c347107e2f8f6bec60 100644 (file)
@@ -4095,11 +4095,6 @@ static int be_roce_map_pci_bars(struct be_adapter *adapter)
 static int be_map_pci_bars(struct be_adapter *adapter)
 {
        u8 __iomem *addr;
-       u32 sli_intf;
-
-       pci_read_config_dword(adapter->pdev, SLI_INTF_REG_OFFSET, &sli_intf);
-       adapter->if_type = (sli_intf & SLI_INTF_IF_TYPE_MASK) >>
-                               SLI_INTF_IF_TYPE_SHIFT;
 
        if (BEx_chip(adapter) && be_physfn(adapter)) {
                adapter->csr = pci_iomap(adapter->pdev, 2, 0);