diff options
| author | Li Heng <[email protected]> | 2020-07-30 03:03:55 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-08-21 03:21:03 +0000 |
| commit | f672d7d35f88fbd84b43090450145c076f54c95a (patch) | |
| tree | 65374aad02660688f9dec16fd1fa3e01ba0a1663 /drivers/scsi/pmcraid.c | |
| parent | scsi: mptctl: Remove unneeded cast from memory allocation (diff) | |
| download | kernel-f672d7d35f88fbd84b43090450145c076f54c95a.tar.gz kernel-f672d7d35f88fbd84b43090450145c076f54c95a.zip | |
scsi: mvsas: Remove superfluous memset()
Fixes coccicheck warning:
./drivers/scsi/mvsas/mv_init.c:244:11-29: WARNING: dma_alloc_coherent use in mvi -> tx already zeroes out memory, so memset is not needed
./drivers/scsi/mvsas/mv_init.c:250:15-33: WARNING: dma_alloc_coherent use in mvi -> rx_fis already zeroes out memory, so memset is not needed
./drivers/scsi/mvsas/mv_init.c:256:11-29: WARNING: dma_alloc_coherent use in mvi -> rx already zeroes out memory, so memset is not needed
./drivers/scsi/mvsas/mv_init.c:265:13-31: WARNING: dma_alloc_coherent use in mvi -> slot 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')
0 files changed, 0 insertions, 0 deletions
