]> git.baikalelectronics.ru Git - kernel.git/commit
igb: remove unnecessary reads of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:44:01 +0000 (07:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:44 +0000 (21:40 -0700)
commitbc9049599bb4a12bdf1e53b39ac6417445d71ff5
treec5555c1155d3e6a0ef467d462ea2d5ab0d298d2a
parentc0aaed092e5e905e63eb40c0ea3495e9a73a3278
igb: remove unnecessary reads 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/igb/igb_main.c