]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/efa: Remove check for zero CQE count
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 13 Feb 2026 10:57:45 +0000 (12:57 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 25 Feb 2026 13:15:30 +0000 (08:15 -0500)
Since ib_core now handles validation, the device driver no longer needs
to verify that the CQE count is non‑zero.

Link: https://patch.msgid.link/20260213-refactor-umem-v1-9-f3be85847922@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/efa/efa_verbs.c

index 9d683cb30cba692c380c82a92e9a9c0be905b327..61d2c82458287974e106caeddcd19b75b1dad327 100644 (file)
@@ -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;