From: Max Gurtovoy <mgurtovoy@nvidia.com>
To: lijun <lijun01@kylinos.cn>,
sagi@grimberg.me, jgg@ziepe.ca, leon@kernel.org,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH] infiniband: iser: remove the unnecessary var
Date: Wed, 4 Jun 2025 12:53:34 +0300 [thread overview]
Message-ID: <826d8306-ef04-4797-9bd6-e4eba9bfea23@nvidia.com> (raw)
In-Reply-To: <7ddad30c33cace54cf409f0d27bcb38881b796c9.camel@kylinos.cn>
On 04/06/2025 12:12, lijun wrote:
> From c1129a053b33e6f85be3d7a26bf0dbb9bac64949 Mon Sep 17 00:00:00 2001
> From: Li Jun <lijun01@kylinos.cn>
> Date: Wed, 4 Jun 2025 16:45:10 +0800
seems like something is wrong with your mailer.
try using "git send-mail"
> Subject: [PATCH] infiniband: iser: remove the unnecessary var
IB/iser: remove unnecessary local variable
>
> In iscsi_iser_mtask_xmit, may return iser_send_control(conn, task)
> directly,so del 'error'.
The 'error' variable is no longer needed, as iscsi_iser_mtask_xmit can
return the result of iser_send_control(conn, task) directly.
>
> Signed-off-by: Li Jun <lijun01@kylinos.cn>
> ---
> drivers/infiniband/ulp/iser/iscsi_iser.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-
> )
>
>
> diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c
> b/drivers/infiniband/ulp/iser/iscsi_iser.c
> index a5be6f1ba12b..2e3c0516ce8f 100644
> --- a/drivers/infiniband/ulp/iser/iscsi_iser.c
> +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
> @@ -267,19 +267,15 @@ static int iscsi_iser_task_init(struct iscsi_task
> *task)
> static int iscsi_iser_mtask_xmit(struct iscsi_conn *conn,
> struct iscsi_task *task)
> {
> - int error = 0;
> -
> iser_dbg("mtask xmit [cid %d itt 0x%x]\n", conn->id, task->itt);
>
> - error = iser_send_control(conn, task);
> -
> /* since iser xmits control with zero copy, tasks can not be
> recycled
> * right after sending them.
> * The recycling scheme is based on whether a response is expected
> * - if yes, the task is recycled at iscsi_complete_pdu
> * - if no, the task is recycled at iser_snd_completion
> */
> - return error;
> + return iser_send_control(conn, task);
> }
>
> static int iscsi_iser_task_xmit_unsol_data(struct iscsi_conn *conn,
change looks good to me, please fix the above in v2.
Acked-by: Max Gurtovoy <mgurtovoy@nvidia.com>
prev parent reply other threads:[~2025-06-04 9:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 9:12 [PATCH] infiniband: iser: remove the unnecessary var lijun
2025-06-04 9:53 ` Max Gurtovoy [this message]
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=826d8306-ef04-4797-9bd6-e4eba9bfea23@nvidia.com \
--to=mgurtovoy@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=lijun01@kylinos.cn \
--cc=linux-rdma@vger.kernel.org \
--cc=sagi@grimberg.me \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox