projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2966612
)
IB/ipath: Fix typo in pma_counter_select subscript
author
Roland Dreier
<rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:07 +0000
(15:33 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:07 +0000
(15:33 -0800)
The array has only 5 entries, so [5] should have been [4].
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ipath/ipath_verbs.c
b/drivers/infiniband/hw/ipath/ipath_verbs.c
index a5456108dbadcae24bbfd1b753cdf77eb07a694b..acdee33ee1f8dc6448c2ffdbf6373955fb63d591 100644
(file)
--- a/
drivers/infiniband/hw/ipath/ipath_verbs.c
+++ b/
drivers/infiniband/hw/ipath/ipath_verbs.c
@@
-1487,7
+1487,7
@@
int ipath_register_ib_device(struct ipath_devdata *dd)
idev->pma_counter_select[1] = IB_PMA_PORT_RCV_DATA;
idev->pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS;
idev->pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS;
- idev->pma_counter_select[
5
] = IB_PMA_PORT_XMIT_WAIT;
+ idev->pma_counter_select[
4
] = IB_PMA_PORT_XMIT_WAIT;
idev->link_width_enabled = 3; /* 1x or 4x */
/* Snapshot current HW counters to "clear" them. */