[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200102014526.139275-1-chenzhou10@huawei.com>
Date: Thu, 2 Jan 2020 09:45:26 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <martin.petersen@...cle.com>, <jejb@...ux.ibm.com>,
<suganath-prabu.subramani@...adcom.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<chenzhou10@...wei.com>
Subject: [PATCH next] 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 <chenzhou10@...wei.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
Powered by blists - more mailing lists