Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287298
b: refs/heads/master
c: f225066
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Feb 2, 2012
1 parent 82cf008 commit 7ec0b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 486d8b9f88cd0871a716e2f16873e811ee6c1ece
refs/heads/master: f225066b64eaffe3a51ee488fb750c82fbcd971c
3 changes: 1 addition & 2 deletions trunk/drivers/infiniband/ulp/srpt/ib_srpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3264,8 +3264,7 @@ static void srpt_add_one(struct ib_device *device)
for (i = 0; i < sdev->srq_size; ++i)
srpt_post_recv(sdev, sdev->ioctx_ring[i]);

WARN_ON(sdev->device->phys_port_cnt
> sizeof(sdev->port)/sizeof(sdev->port[0]));
WARN_ON(sdev->device->phys_port_cnt > ARRAY_SIZE(sdev->port));

for (i = 1; i <= sdev->device->phys_port_cnt; i++) {
sport = &sdev->port[i - 1];
Expand Down

0 comments on commit 7ec0b61

Please sign in to comment.