]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:45 +0000 (21:40 -0700)
commit4a65a05561c9dce1e151b90905a08a8e127007fe
tree04e38c4c44c6df3cc5f54cdfd170cd466f7b27a8
parent76b7c733e030f77e9cb10b69027d4d03ac4629d3
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>
drivers/net/bnx2.c