projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
708ebb3
)
mlx4: remove unnecessary read of PCI_CAP_ID_EXP
author
Jon Mason
<
[email protected]
>
Mon, 27 Jun 2011 07:42:17 +0000
(07:42 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 28 Jun 2011 04:40:44 +0000
(21:40 -0700)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/mlx4/reset.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/reset.c
b/drivers/net/mlx4/reset.c
index e5741dab3825fb6a3f17ac6b87ead4203ec8064b..11e7c1cb99bf30d001ad5127d9d1965f741d6d70 100644
(file)
--- a/
drivers/net/mlx4/reset.c
+++ b/
drivers/net/mlx4/reset.c
@@
-77,7
+77,7
@@
int mlx4_reset(struct mlx4_dev *dev)
goto out;
}
- pcie_cap = pci_
find_capability(dev->pdev, PCI_CAP_ID_EXP
);
+ pcie_cap = pci_
pcie_cap(dev->pdev
);
for (i = 0; i < 64; ++i) {
if (i == 22 || i == 23)