diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-11-13 10:21:26 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-13 10:21:26 -0800 |
commit | 024a516d1c7e4596d26435ead23271f7a3b585dc (patch) | |
tree | 9f63ce7e6c16f556ff1cb0c5106491232ebe751a | |
parent | 7c446d12ba8110cce920cff3c904515434128fea (diff) | |
download | libmthca-024a516d1c7e4596d26435ead23271f7a3b585dc.tar.gz |
Trivial whitespace fixes
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/qp.c | 4 | ||||
-rw-r--r-- | src/verbs.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -663,7 +663,7 @@ int mthca_arbel_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, ((struct mthca_next_seg *) prev_wqe)->ee_nds = htonl(MTHCA_NEXT_DBD | size | ((wr->send_flags & IBV_SEND_FENCE) ? - MTHCA_NEXT_FENCE : 0)); + MTHCA_NEXT_FENCE : 0)); if (!size0) { size0 = size; @@ -847,7 +847,7 @@ int mthca_alloc_qp_buf(struct ibv_pd *pd, struct ibv_qp_cap *cap, qp->buf_size = qp->send_wqe_offset + (qp->sq.max << qp->sq.wqe_shift); - if (mthca_alloc_buf(&qp->buf, + if (mthca_alloc_buf(&qp->buf, align(qp->buf_size, to_mdev(pd->context->device)->page_size), to_mdev(pd->context->device)->page_size)) { free(qp->wrid); diff --git a/src/verbs.c b/src/verbs.c index 1b5092e..ade0db7 100644 --- a/src/verbs.c +++ b/src/verbs.c @@ -540,7 +540,7 @@ struct ibv_qp *mthca_create_qp(struct ibv_pd *pd, struct ibv_qp_init_attr *attr) } else { cmd.sq_db_page = cmd.rq_db_page = cmd.sq_db_index = cmd.rq_db_index = 0; - } + } ret = ibv_cmd_create_qp(pd, &qp->ibv_qp, attr, &cmd.ibv_cmd, sizeof cmd, &resp, sizeof resp); |