]> git.baikalelectronics.ru Git - kernel.git/commit
niu: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:45:44 +0000 (07:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:45 +0000 (21:40 -0700)
commit835a55a5802fad040c492372d2a8630b8642a604
tree3e84f0b3020091ee739cfe30bd8816f54990a8d4
parent93f47a9255ca26669751c384e9a46fede14d4bd1
niu: 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 <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c