All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
  2022-02-24 18:28 [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void yanjun.zhu
@ 2022-02-24 16:00 ` Saleem, Shiraz
  2022-02-28 15:33 ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Saleem, Shiraz @ 2022-02-24 16:00 UTC (permalink / raw)
  To: yanjun.zhu, Ismail, Mustafa, jgg, linux-rdma, leon


> Subject: [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
> 
> From: Zhu Yanjun <yanjun.zhu@linux.dev>
> 
> The function irdma_create_mg_ctx always returns 0, so make it void and delete the
> return value check.
> 
> Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
> ---
> V1->V2: Remove the unused ret_code and rebase to the commit 2322d17abf0a
>         ("RDMA/irdma: Remove excess error variables")
> ---
>  drivers/infiniband/hw/irdma/uda.c | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)
> 

Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
@ 2022-02-24 18:28 yanjun.zhu
  2022-02-24 16:00 ` Saleem, Shiraz
  2022-02-28 15:33 ` Jason Gunthorpe
  0 siblings, 2 replies; 3+ messages in thread
From: yanjun.zhu @ 2022-02-24 18:28 UTC (permalink / raw)
  To: mustafa.ismail, shiraz.saleem, jgg, linux-rdma, yanjun.zhu, leon

From: Zhu Yanjun <yanjun.zhu@linux.dev>

The function irdma_create_mg_ctx always returns 0,
so make it void and delete the return value check.

Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
---
V1->V2: Remove the unused ret_code and rebase to the commit 2322d17abf0a
        ("RDMA/irdma: Remove excess error variables")
---
 drivers/infiniband/hw/irdma/uda.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/infiniband/hw/irdma/uda.c b/drivers/infiniband/hw/irdma/uda.c
index 7a9988ddbd01..a247ae3142d9 100644
--- a/drivers/infiniband/hw/irdma/uda.c
+++ b/drivers/infiniband/hw/irdma/uda.c
@@ -86,8 +86,7 @@ enum irdma_status_code irdma_sc_access_ah(struct irdma_sc_cqp *cqp,
  * irdma_create_mg_ctx() - create a mcg context
  * @info: multicast group context info
  */
-static enum irdma_status_code
-irdma_create_mg_ctx(struct irdma_mcast_grp_info *info)
+static void irdma_create_mg_ctx(struct irdma_mcast_grp_info *info)
 {
 	struct irdma_mcast_grp_ctx_entry_info *entry_info = NULL;
 	u8 idx = 0; /* index in the array */
@@ -106,8 +105,6 @@ irdma_create_mg_ctx(struct irdma_mcast_grp_info *info)
 			ctx_idx++;
 		}
 	}
-
-	return 0;
 }
 
 /**
@@ -122,7 +119,6 @@ enum irdma_status_code irdma_access_mcast_grp(struct irdma_sc_cqp *cqp,
 					      u32 op, u64 scratch)
 {
 	__le64 *wqe;
-	enum irdma_status_code ret_code = 0;
 
 	if (info->mg_id >= IRDMA_UDA_MAX_FSI_MGS) {
 		ibdev_dbg(to_ibdev(cqp->dev), "WQE: mg_id out of range\n");
@@ -135,9 +131,7 @@ enum irdma_status_code irdma_access_mcast_grp(struct irdma_sc_cqp *cqp,
 		return IRDMA_ERR_RING_FULL;
 	}
 
-	ret_code = irdma_create_mg_ctx(info);
-	if (ret_code)
-		return ret_code;
+	irdma_create_mg_ctx(info);
 
 	set_64bit_val(wqe, 32, info->dma_mem_mc.pa);
 	set_64bit_val(wqe, 16,
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
  2022-02-24 18:28 [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void yanjun.zhu
  2022-02-24 16:00 ` Saleem, Shiraz
@ 2022-02-28 15:33 ` Jason Gunthorpe
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2022-02-28 15:33 UTC (permalink / raw)
  To: yanjun.zhu; +Cc: mustafa.ismail, shiraz.saleem, linux-rdma, leon

On Thu, Feb 24, 2022 at 01:28:32PM -0500, yanjun.zhu@linux.dev wrote:
> From: Zhu Yanjun <yanjun.zhu@linux.dev>
> 
> The function irdma_create_mg_ctx always returns 0,
> so make it void and delete the return value check.
> 
> Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
> Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
> ---
> V1->V2: Remove the unused ret_code and rebase to the commit 2322d17abf0a
>         ("RDMA/irdma: Remove excess error variables")
> ---
>  drivers/infiniband/hw/irdma/uda.c | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)

Applied to for-next, thanks

Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-28 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 18:28 [PATCHv2 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void yanjun.zhu
2022-02-24 16:00 ` Saleem, Shiraz
2022-02-28 15:33 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.