[PATCH rdma-next 09/50] RDMA/efa: Remove check for zero CQE count
From: Leon Romanovsky
Date: Fri Feb 13 2026 - 06:03:14 EST
From: Leon Romanovsky <leonro@xxxxxxxxxx>
Since ib_core now handles validation, the device driver no longer needs
to verify that the CQE count is non‑zero.
Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
---
drivers/infiniband/hw/efa/efa_verbs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/efa/efa_verbs.c b/drivers/infiniband/hw/efa/efa_verbs.c
index d465e6acfe3c..e8fb99b61be8 100644
--- a/drivers/infiniband/hw/efa/efa_verbs.c
+++ b/drivers/infiniband/hw/efa/efa_verbs.c
@@ -1152,9 +1152,9 @@ int efa_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
if (attr->flags)
return -EOPNOTSUPP;
- if (entries < 1 || entries > dev->dev_attr.max_cq_depth) {
+ if (entries > dev->dev_attr.max_cq_depth) {
ibdev_dbg(ibdev,
- "cq: requested entries[%u] non-positive or greater than max[%u]\n",
+ "cq: requested entries[%u] greater than max[%u]\n",
entries, dev->dev_attr.max_cq_depth);
err = -EINVAL;
goto err_out;
--
2.52.0