Skip to content

Commit

Permalink
UCT/IB: Code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Jun 11, 2019
1 parent fb814ea commit 7df80a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/uct/ib/base/ib_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,11 @@ struct ibv_cq *uct_ib_create_cq(struct ibv_context *context, int cqe,
return ibv_cq_ex_to_cq(cq_ex);
} else if (errno != ENOSYS) {
return NULL;
} else
/* if ibv_create_cq_ex returns ENOSYS, fallback to ibv_create_cq */
#endif
{
return ibv_create_cq(context, cqe, NULL, channel, comp_vector);
}

/* if ibv_create_cq_ex returned ENOSYS, fallback to ibv_create_cq */
#endif
return ibv_create_cq(context, cqe, NULL, channel, comp_vector);
}

static ucs_status_t uct_ib_iface_create_cq(uct_ib_iface_t *iface, int cq_length,
Expand Down

0 comments on commit 7df80a0

Please sign in to comment.