summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/irdma/uk.c
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@linux.dev>2021-10-19 17:37:17 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-10-21 00:54:16 +0200
commitdede33da0d97a423aae21b12c3bdd282b832853c (patch)
tree5d5f384c876dbb7ba873a47132f3e9c7f2ebbd0f /drivers/infiniband/hw/irdma/uk.c
parentMerge brank 'mlx5_mkey' into rdma.git for-next (diff)
downloadlinux-dede33da0d97a423aae21b12c3bdd282b832853c.tar.xz
linux-dede33da0d97a423aae21b12c3bdd282b832853c.zip
RDMA/irdma: Make irdma_uk_cq_init() return a void
The function irdma_uk_cq_init always returns 0, so make it void and delete all the return value checks. Link: https://lore.kernel.org/r/20211019153717.3836-1-yanjun.zhu@linux.dev Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev> Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/irdma/uk.c')
-rw-r--r--drivers/infiniband/hw/irdma/uk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/irdma/uk.c b/drivers/infiniband/hw/irdma/uk.c
index ebcd93bb9e9d..cc578974ad0e 100644
--- a/drivers/infiniband/hw/irdma/uk.c
+++ b/drivers/infiniband/hw/irdma/uk.c
@@ -1446,8 +1446,8 @@ enum irdma_status_code irdma_uk_qp_init(struct irdma_qp_uk *qp,
* @cq: hw cq
* @info: hw cq initialization info
*/
-enum irdma_status_code irdma_uk_cq_init(struct irdma_cq_uk *cq,
- struct irdma_cq_uk_init_info *info)
+void irdma_uk_cq_init(struct irdma_cq_uk *cq,
+ struct irdma_cq_uk_init_info *info)
{
cq->cq_base = info->cq_base;
cq->cq_id = info->cq_id;
@@ -1458,8 +1458,6 @@ enum irdma_status_code irdma_uk_cq_init(struct irdma_cq_uk *cq,
cq->avoid_mem_cflct = info->avoid_mem_cflct;
IRDMA_RING_INIT(cq->cq_ring, cq->cq_size);
cq->polarity = 1;
-
- return 0;
}
/**