diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-03-23 21:32:22 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-07 05:01:54 +0200 |
commit | 0848ccaea664970e559d99348484615ba0f7ab63 (patch) | |
tree | d035d1d06072eb53850ec42ca42b03116e1febb2 /drivers/scsi/vmw_pvscsi.c | |
parent | scsi: ufs: ufshcd-pltfrm: Simplify pdev->dev usage (diff) | |
download | linux-0848ccaea664970e559d99348484615ba0f7ab63.tar.xz linux-0848ccaea664970e559d99348484615ba0f7ab63.zip |
scsi: vmw_pvscsi: No need to clear memory after a dma_alloc_coherent() call
dma_alloc_coherent() already clear the allocated memory, there is no need
to explicitly call memset().
Since 'config_page' and 'header' are the same, a memset() call can be
avoided.
Link: https://lore.kernel.org/r/cd1220c628c89465dcfcbf4aa9bd53110898a529.1648067518.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/vmw_pvscsi.c')
-rw-r--r-- | drivers/scsi/vmw_pvscsi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c index 1f037b8ab904..f88ecdb93a8a 100644 --- a/drivers/scsi/vmw_pvscsi.c +++ b/drivers/scsi/vmw_pvscsi.c @@ -1324,7 +1324,6 @@ static u32 pvscsi_get_max_targets(struct pvscsi_adapter *adapter) * indicate success. */ header = config_page; - memset(header, 0, sizeof *header); header->hostStatus = BTSTAT_INVPARAM; header->scsiStatus = SDSTAT_CHECK; |