linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next] scsi: mpt3sas: remove call to memset after dma_alloc_coherent
@ 2020-01-02  1:45 Chen Zhou
  0 siblings, 0 replies; only message in thread
From: Chen Zhou @ 2020-01-02  1:45 UTC (permalink / raw)
  To: martin.petersen, jejb, suganath-prabu.subramani
  Cc: linux-scsi, linux-kernel, chenzhou10

Function dma_alloc_coherent use in ioc -> request already zeroes out
memory, so memset is not needed.

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
---
 drivers/scsi/mpt3sas/mpt3sas_base.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index 45fd8df..663dd4d 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -5090,7 +5090,6 @@ _base_allocate_memory_pools(struct MPT3SAS_ADAPTER *ioc)
 		_base_release_memory_pools(ioc);
 		goto retry_allocation;
 	}
-	memset(ioc->request, 0, sz);
 
 	if (retry_sz)
 		ioc_err(ioc, "request pool: dma_alloc_coherent succeed: hba_depth(%d), chains_per_io(%d), frame_sz(%d), total(%d kb)\n",
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-02  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02  1:45 [PATCH next] scsi: mpt3sas: remove call to memset after dma_alloc_coherent Chen Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).