From: Roman Bolshakov <r.bolshakov@yadro.com>
To: Daniel Wagner <dwagner@suse.de>
Cc: <linux-scsi@vger.kernel.org>, Arun Easi <aeasi@marvell.com>,
Nilesh Javali <njavali@marvell.com>,
Himanshu Madhani <himanshu.madhani@oracle.com>,
Hannes Reinecke <hare@suse.de>, Martin Wilck <mwilck@suse.com>
Subject: Re: [PATCH] qla2xxx: Remove return value from qla_nvme_ls()
Date: Wed, 20 May 2020 19:03:13 +0300 [thread overview]
Message-ID: <20200520160313.GI75422@SPB-NB-133.local> (raw)
In-Reply-To: <20200520130819.90625-1-dwagner@suse.de>
On Wed, May 20, 2020 at 03:08:19PM +0200, Daniel Wagner wrote:
> The function always returns QLA_SUCCESS and the caller
> qla2x00_start_sp() doesn't even evalute the return value. So there is
> no point in returning a status.
>
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
> drivers/scsi/qla2xxx/qla_iocb.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
> index b039bd83f947..8865c35d3421 100644
> --- a/drivers/scsi/qla2xxx/qla_iocb.c
> +++ b/drivers/scsi/qla2xxx/qla_iocb.c
> @@ -3607,11 +3607,10 @@ static void qla2x00_send_notify_ack_iocb(srb_t *sp,
> /*
> * Build NVME LS request
> */
> -static int
> +static void
> qla_nvme_ls(srb_t *sp, struct pt_ls4_request *cmd_pkt)
> {
> struct srb_iocb *nvme;
> - int rval = QLA_SUCCESS;
>
> nvme = &sp->u.iocb_cmd;
> cmd_pkt->entry_type = PT_LS4_REQUEST;
> @@ -3631,8 +3630,6 @@ qla_nvme_ls(srb_t *sp, struct pt_ls4_request *cmd_pkt)
> cmd_pkt->rx_byte_count = cpu_to_le32(nvme->u.nvme.rsp_len);
> cmd_pkt->dsd[1].length = cpu_to_le32(nvme->u.nvme.rsp_len);
> put_unaligned_le64(nvme->u.nvme.rsp_dma, &cmd_pkt->dsd[1].address);
> -
> - return rval;
> }
>
> static void
> --
> 2.16.4
>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Thanks,
Roman
next prev parent reply other threads:[~2020-05-20 16:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 13:08 [PATCH] qla2xxx: Remove return value from qla_nvme_ls() Daniel Wagner
2020-05-20 13:36 ` Johannes Thumshirn
2020-05-20 15:51 ` Bart Van Assche
2020-05-20 16:03 ` Roman Bolshakov [this message]
2020-05-20 16:41 ` Himanshu Madhani
2020-05-27 2:12 ` Martin K. Petersen
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=20200520160313.GI75422@SPB-NB-133.local \
--to=r.bolshakov@yadro.com \
--cc=aeasi@marvell.com \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=himanshu.madhani@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mwilck@suse.com \
--cc=njavali@marvell.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox