@@ -359,8 +359,7 @@ LATEST_SYMVER_FUNC(ibv_get_async_event, 1_1, "IBVERBS_1.1",
break;
}
- if (context->ops.async_event)
- context->ops.async_event(event);
+ context->ops.async_event(event);
return 0;
}
@@ -269,11 +269,6 @@ LATEST_SYMVER_FUNC(ibv_rereg_mr, 1_1, "IBVERBS_1.1",
return IBV_REREG_MR_ERR_INPUT;
}
- if (!mr->context->ops.rereg_mr) {
- errno = ENOSYS;
- return IBV_REREG_MR_ERR_INPUT;
- }
-
if (flags & IBV_REREG_MR_CHANGE_TRANSLATION) {
err = ibv_dontfork_range(addr, length);
if (err)
@@ -420,9 +415,6 @@ LATEST_SYMVER_FUNC(ibv_resize_cq, 1_1, "IBVERBS_1.1",
int,
struct ibv_cq *cq, int cqe)
{
- if (!cq->context->ops.resize_cq)
- return ENOSYS;
-
return cq->context->ops.resize_cq(cq, cqe);
}
@@ -459,8 +451,7 @@ LATEST_SYMVER_FUNC(ibv_get_cq_event, 1_1, "IBVERBS_1.1",
*cq = (struct ibv_cq *) (uintptr_t) ev.cq_handle;
*cq_context = (*cq)->cq_context;
- if ((*cq)->context->ops.cq_event)
- (*cq)->context->ops.cq_event(*cq);
+ (*cq)->context->ops.cq_event(*cq);
return 0;
}
@@ -482,9 +473,6 @@ LATEST_SYMVER_FUNC(ibv_create_srq, 1_1, "IBVERBS_1.1",
{
struct ibv_srq *srq;
- if (!pd->context->ops.create_srq)
- return NULL;
-
srq = pd->context->ops.create_srq(pd, srq_init_attr);
if (srq) {
srq->context = pd->context;