]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:42:17 +0000 (07:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 04:40:44 +0000 (21:40 -0700)
commitf94d538680bd2b1d8ecf74cd7e6a62e7349b3c29
tree1ca7c9447235ed4124fbd1a0789ea771d7d08d78
parentf922744f86cf6ee1175cc5d2a7dddb9f9a83d0de
mlx4: 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/mlx4/reset.c