]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:44:43 +0000 (07:44 +0000)
committerBob Picco <bob.picco@oracle.com>
Fri, 3 Feb 2012 18:18:33 +0000 (13:18 -0500)
commit49a4f1467b623bd6e4469eab2870f629c9b1a175
treef75db4e1ac7584defc0ae0c8f432572de7461509
parent180c79a1988a87699b5e95af1875127cfaba1399
bnx2: remove unnecessary read of PCI_CAP_ID_EXP

The PCIE capability offset is saved during PCI bus walking.  It will
remove an unnecessary search in the PCI configuration space if this
value is referenced instead of reacquiring it.  Also, pci_is_pcie is a
better way of determining if the device is PCIE or not (as it uses the
same saved PCIE capability offset).

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e82760e7d6498d24d1a92f22767ba578c8980a6d)
drivers/net/bnx2.c