diff options
| author | Li Heng <[email protected]> | 2020-07-30 03:31:56 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-08-21 03:25:48 +0000 |
| commit | 7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c (patch) | |
| tree | ca83ba8d37f04108c7ffbf80c5ed550d70738be9 /drivers/scsi/pmcraid.c | |
| parent | scsi: mvsas: Remove superfluous memset() (diff) | |
| download | kernel-7b1d886298077e8fb1f6c1d44cdb22872bb5bb8c.tar.gz kernel-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/[email protected]
Signed-off-by: Li Heng <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
| -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; |
