From 7df80a09a2455e2063c7af591910fe105ddcc992 Mon Sep 17 00:00:00 2001 From: Yossi Itigin Date: Tue, 11 Jun 2019 16:04:35 +0300 Subject: [PATCH] UCT/IB: Code review fix --- src/uct/ib/base/ib_iface.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/uct/ib/base/ib_iface.c b/src/uct/ib/base/ib_iface.c index 4baa1ca7c5c..965cb280796 100644 --- a/src/uct/ib/base/ib_iface.c +++ b/src/uct/ib/base/ib_iface.c @@ -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,