Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13772
b: refs/heads/master
c: 40de2e5
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Nov 10, 2005
1 parent 1bac0ab commit 795a52c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 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: 0b4ff2c0e624089ad87dc1604e239b7c3201c53f
refs/heads/master: 40de2e548c225e3ef859e3c60de9785e37e1b5b1
12 changes: 2 additions & 10 deletions trunk/drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,8 @@ EXPORT_SYMBOL(ib_destroy_cq);
int ib_resize_cq(struct ib_cq *cq,
int cqe)
{
int ret;

if (!cq->device->resize_cq)
return -ENOSYS;

ret = cq->device->resize_cq(cq, &cqe);
if (!ret)
cq->cqe = cqe;

return ret;
return cq->device->resize_cq ?
cq->device->resize_cq(cq, cqe) : -ENOSYS;
}
EXPORT_SYMBOL(ib_resize_cq);

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ struct ib_device {
struct ib_ucontext *context,
struct ib_udata *udata);
int (*destroy_cq)(struct ib_cq *cq);
int (*resize_cq)(struct ib_cq *cq, int *cqe);
int (*resize_cq)(struct ib_cq *cq, int cqe);
int (*poll_cq)(struct ib_cq *cq, int num_entries,
struct ib_wc *wc);
int (*peek_cq)(struct ib_cq *cq, int wc_cnt);
Expand Down

0 comments on commit 795a52c

Please sign in to comment.