scsi: mpt3sas: remove call to memset after dma_alloc_coherent
Subsystems (2)
PATCH 1/1 scsi: mpt3sas: remove call to memset after dma_alloc_coherent
Function dma_alloc_coherent use in ioc -> request already zeroes out memory, so memset is not needed.
Signed-off-by Chen Zhou <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +0 -1
@@ -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",
Signature · 1 line
2.7.4