IB/qib: Remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 17:40:38 +0000 (17:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 18:57:52 +0000 (11:57 -0700)
commit7f27cda03708e3460849f82b47c604f1492e3777
treee6e1648a6df5da07662a9496776baf6dcac765e6
parent0cd85e6738976b753fb156d833c94083418b3ae4
IB/qib: 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.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_pcie.c