All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yanjun Zhu <yanjun.zhu@linux.dev>
To: "Saleem, Shiraz" <shiraz.saleem@intel.com>,
	"Ismail, Mustafa" <mustafa.ismail@intel.com>,
	"jgg@ziepe.ca" <jgg@ziepe.ca>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"leon@kernel.org" <leon@kernel.org>
Subject: Re: [PATCH 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
Date: Thu, 24 Feb 2022 10:12:39 +0800	[thread overview]
Message-ID: <e48c607e-d86a-fa06-746b-3176222288ab@linux.dev> (raw)
In-Reply-To: <0e3d1406d83b472eba6f805a34234cde@intel.com>


在 2022/2/24 2:00, Saleem, Shiraz 写道:
>> Subject: Re: [PATCH 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void
>>
>> 在 2022/2/18 2:19, yanjun.zhu@linux.dev 写道:
>>> 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>
>> gentle ping
>>
>> Zhu Yanjun
>>
>>> ---
>>>    drivers/infiniband/hw/irdma/uda.c | 9 ++-------
>>>    1 file changed, 2 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/drivers/infiniband/hw/irdma/uda.c
>>> b/drivers/infiniband/hw/irdma/uda.c
>>> index 7a9988ddbd01..5eeb76bc29fd 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;
>>>    }
>>>
>>>    /**
>>> @@ -135,9 +132,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);
> ret_code is unused now? Get rid of it?

Thanks, it is removed in the latest commit.

Zhu Yanjun

>
> Shiraz

  reply	other threads:[~2022-02-24  2:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 18:19 [PATCH 1/1] RDMA/irdma: Make irdma_create_mg_ctx return a void yanjun.zhu
2022-02-23  8:46 ` Yanjun Zhu
2022-02-23 18:00   ` Saleem, Shiraz
2022-02-24  2:12     ` Yanjun Zhu [this message]
2022-02-23 19:32 ` Jason Gunthorpe
2022-02-24  2:13   ` Yanjun Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e48c607e-d86a-fa06-746b-3176222288ab@linux.dev \
    --to=yanjun.zhu@linux.dev \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mustafa.ismail@intel.com \
    --cc=shiraz.saleem@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.