]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a79477b81c0bfc09a0524a193fa982c1ce90241
treec290998d4b836ca0dd2f79e8d213e97866aeb5eb
parentc6efa1a0c8445ec2ec23ff48acbbb4c748c26318
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