From: Alex Dewar <alex.dewar90@gmail.com>
To: Nilesh Javali <njavali@marvell.com>,
GR-QLogic-Storage-Upstream@marvell.com,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: qla2xxx: Remove unnecessary call to memset
Date: Mon, 24 Aug 2020 22:42:47 +0100 [thread overview]
Message-ID: <c6f52893-6fa4-f5f8-42a8-9a2482f16c45@gmail.com> (raw)
In-Reply-To: <20200820185149.932178-1-alex.dewar90@gmail.com>
On 2020-08-20 19:51, Alex Dewar wrote:
> In qla25xx_set_els_cmds_supported(), a call is made to
> dma_alloc_coherent() followed by zeroing the memory with memset. This is
> unnecessary as dma_alloc_coherent() already zeros memory. Remove.
>
> Issue identified with Coccinelle.
>
> Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Gentle ping?
> ---
> drivers/scsi/qla2xxx/qla_mbx.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
> index 226f1428d3e5..e00f604bbf7a 100644
> --- a/drivers/scsi/qla2xxx/qla_mbx.c
> +++ b/drivers/scsi/qla2xxx/qla_mbx.c
> @@ -4925,8 +4925,6 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha)
> return QLA_MEMORY_ALLOC_FAILED;
> }
>
> - memset(els_cmd_map, 0, ELS_CMD_MAP_SIZE);
> -
> /* List of Purex ELS */
> cmd_opcode[0] = ELS_FPIN;
> cmd_opcode[1] = ELS_RDP;
next prev parent reply other threads:[~2020-08-24 21:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 18:51 Alex Dewar
2020-08-20 23:49 ` [PATCH v2] scsi: Don't call memset after dma_alloc_coherent() Alex Dewar
2020-08-24 21:52 ` Alex Dewar
2020-09-02 1:22 ` Martin K. Petersen
2020-09-02 15:51 ` Alex Dewar
2020-09-02 16:03 ` Alex Dewar
2020-09-03 1:20 ` Martin K. Petersen
2020-08-24 21:42 ` Alex Dewar [this message]
2020-08-26 16:34 ` [PATCH] scsi: qla2xxx: Remove unnecessary call to memset Arun Easi
-- strict thread matches above, loose matches on Subject: below --
2017-09-11 12:54 [PATCH] scsi: qla2xxx: remove " Himanshu Jha
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=c6f52893-6fa4-f5f8-42a8-9a2482f16c45@gmail.com \
--to=alex.dewar90@gmail.com \
--cc=GR-QLogic-Storage-Upstream@marvell.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.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
all inboxes | Powered by JetHome®