myri10ge: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <mason@myri.com>
Mon, 27 Jun 2011 05:05:05 +0000 (05:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2011 13:02:05 +0000 (06:02 -0700)
commiteffd1edab9fd3dc03cb87097a9da2552b940456b
treec290998d4b836ca0dd2f79e8d213e97866aeb5eb
parent5dcd846712046d68020e9dfddd7ca491dc138f0d
myri10ge: 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 <mason@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c