]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:42:49 +0000 (07:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:44 +0000 (21:40 -0700)
commitbf53ac35933570656d2ed8bf0ebc255b9af542b6
tree20ed7a03e85691ff1516076af6ad76518d01d439
parentf94d538680bd2b1d8ecf74cd7e6a62e7349b3c29
cxgb3: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/common.h
drivers/net/cxgb3/t3_hw.c