diff options
author | Li Heng <liheng40@huawei.com> | 2020-07-30 11:31:56 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-08-20 23:25:48 -0400 |
commit | 7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c (patch) | |
tree | ca83ba8d37f04108c7ffbf80c5ed550d70738be9 | |
parent | f672d7d35f88fbd84b43090450145c076f54c95a (diff) | |
download | linux-7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c.tar.gz linux-7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c.tar.bz2 linux-7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c.zip |
scsi: pmcraid: Remove superfluous memset()
Fixes coccicheck warning:
./drivers/scsi/pmcraid.c:4709:3-21: WARNING: dma_alloc_coherent use in pinstance -> hrrq_start [ i ] already zeroes out memory, so memset is not needed
dma_alloc_coherent() already zeroes out memory so memset() is not needed.
Link: https://lore.kernel.org/r/1596079918-41115-2-git-send-email-liheng40@huawei.com
Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/pmcraid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index aa9ae2ae8579..d99568fdf4af 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -4716,7 +4716,6 @@ static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) return -ENOMEM; } - memset(pinstance->hrrq_start[i], 0, buffer_size); pinstance->hrrq_curr[i] = pinstance->hrrq_start[i]; pinstance->hrrq_end[i] = pinstance->hrrq_start[i] + PMCRAID_MAX_CMD - 1; |