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)
commitd3aa0cb44f2cfcdfa6df1bd40b9c182b35528849
tree3e84f0b3020091ee739cfe30bd8816f54990a8d4
parent77c98e6a7a3ab76340b315d31fe1edded17cba15
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