Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9124
b: refs/heads/master
c: 3853194
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Sep 19, 2005
1 parent 77ffe20 commit be4e037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: c915033fc62d7186d243d89f88782d6be33fd8f6
refs/heads/master: 3853194c2e174cee4da093c67bd54cbf9a38559a
10 changes: 4 additions & 6 deletions trunk/drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ int mthca_tavor_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
mthca_err(dev, "SRQ %06x full\n", srq->srqn);
err = -ENOMEM;
*bad_wr = wr;
return nreq;
break;
}

wqe = get_wqe(srq, ind);
Expand All @@ -427,7 +427,7 @@ int mthca_tavor_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
err = -EINVAL;
*bad_wr = wr;
srq->last = prev_wqe;
return nreq;
break;
}

for (i = 0; i < wr->num_sge; ++i) {
Expand Down Expand Up @@ -456,8 +456,6 @@ int mthca_tavor_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
srq->first_free = next_ind;
}

return nreq;

if (likely(nreq)) {
__be32 doorbell[2];

Expand Down Expand Up @@ -501,7 +499,7 @@ int mthca_arbel_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
mthca_err(dev, "SRQ %06x full\n", srq->srqn);
err = -ENOMEM;
*bad_wr = wr;
return nreq;
break;
}

wqe = get_wqe(srq, ind);
Expand All @@ -517,7 +515,7 @@ int mthca_arbel_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
if (unlikely(wr->num_sge > srq->max_gs)) {
err = -EINVAL;
*bad_wr = wr;
return nreq;
break;
}

for (i = 0; i < wr->num_sge; ++i) {
Expand Down

0 comments on commit be4e037

Please sign in to comment.