]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:46:31 +0000 (07:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:45 +0000 (21:40 -0700)
commit595bed02956932ce17daa24843e7057c1620f4db
treed7efeb7a2737e20a666ef03f7905cc8fe47d00a6
parent5b25041d14f3d0581f0c544c921b52b169fec8d3
r8169: remove unnecessary read of PCI_CAP_ID_EXP

The PCIE capability offset is saved during PCI bus walking.  Use the
value from pci_dev instead of checking in the driver and saving it off
the the driver specific structure.  Also, 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/r8169.c