diff mbox

[rdma-core,5/6] verbs: Remove _RESERVED enums related to CREATE_CQ

Message ID 20180218204002.7408-6-jgg@ziepe.ca (mailing list archive)
State Accepted
Headers show

Commit Message

Jason Gunthorpe Feb. 18, 2018, 8:40 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

The only remaining user wasn't right, so get rid of them.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 libibverbs/verbs.h     | 2 --
 providers/mlx4/verbs.c | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h
index 5325f8fe412276..cb96f33322dccc 100644
--- a/libibverbs/verbs.h
+++ b/libibverbs/verbs.h
@@ -1608,12 +1608,10 @@  struct ibv_context {
 
 enum ibv_cq_init_attr_mask {
 	IBV_CQ_INIT_ATTR_MASK_FLAGS	= 1 << 0,
-	IBV_CQ_INIT_ATTR_MASK_RESERVED	= 1 << 1
 };
 
 enum ibv_create_cq_attr_flags {
 	IBV_CREATE_CQ_ATTR_SINGLE_THREADED = 1 << 0,
-	IBV_CREATE_CQ_ATTR_RESERVED = 1 << 1,
 };
 
 struct ibv_cq_init_attr_ex {
diff --git a/providers/mlx4/verbs.c b/providers/mlx4/verbs.c
index 3c8bcaae4765e9..9385d5b38a3d4b 100644
--- a/providers/mlx4/verbs.c
+++ b/providers/mlx4/verbs.c
@@ -574,7 +574,8 @@  struct ibv_cq_ex *mlx4_create_cq_ex(struct ibv_context *context,
 						.comp_mask = cq_attr->comp_mask,
 						.flags = cq_attr->flags};
 
-	if (!check_comp_mask(cq_attr_c.comp_mask, IBV_CQ_INIT_ATTR_MASK_RESERVED - 1)) {
+	if (!check_comp_mask(cq_attr_c.comp_mask,
+			     IBV_CQ_INIT_ATTR_MASK_FLAGS)) {
 		errno = EINVAL;
 		return NULL;
 	}