e1000e: remove unnecessary reads of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:43:47 +0000 (07:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:44 +0000 (21:40 -0700)
commit353064de8af3bf46757376db66c29fa87a9fda3a
tree2c7da10731051164db980806dd4b5d9a099253f5
parent6532e9cb33221a31c8514441a972486af713ad6e
e1000e: 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/e1000e/lib.c
drivers/net/e1000e/netdev.c