summaryrefslogtreecommitdiff
path: root/drivers/net/mlx4
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2011-06-27 12:56:50 +0000
committerDavid S. Miller <davem@davemloft.net>2011-06-27 21:38:45 -0700
commit708ebb3a51489e70bc2b67b2772deea336eba849 (patch)
treec828b1e143ad95e0c5c8c83bedae9225db34dd01 /drivers/net/mlx4
parentec0d75518cb06261f1823fa2713fe52b9b26455e (diff)
downloadlwn-708ebb3a51489e70bc2b67b2772deea336eba849.tar.gz
lwn-708ebb3a51489e70bc2b67b2772deea336eba849.zip
tg3: remove unnecessary read of PCI_CAP_ID_EXP
The PCIE capability offset is saved during PCI bus walking. Use the value from pci_dev instead of checking in the driver and saving it off the the driver specific structure. It will remove an unnecessary search in the PCI configuration space if this value is referenced instead of reacquiring it. v2 of the patch re-adds the PCI_EXPRESS flag and adds comments describing why it is necessary. [ pdev->pcie_cap --> pci_pcie_cap(pdev) -DaveM ] Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4')
0 files changed, 0 insertions, 0 deletions