diff options
author | Li Heng <liheng40@huawei.com> | 2020-07-30 05:31:57 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-08-21 05:25:49 +0200 |
commit | bef93fbfcf4ae9ecaa50e38d32cf6b8dbce4a797 (patch) | |
tree | 6cef64c19b1de10686a45590acf7fcacbd137a24 /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | scsi: pmcraid: Remove superfluous memset() (diff) | |
download | linux-bef93fbfcf4ae9ecaa50e38d32cf6b8dbce4a797.tar.xz linux-bef93fbfcf4ae9ecaa50e38d32cf6b8dbce4a797.zip |
scsi: qla2xxx: Remove superfluous memset()
Fixes coccicheck warning:
./drivers/scsi/qla2xxx/qla_mbx.c:4928:15-33: WARNING: dma_alloc_coherent use in els_cmd_map 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-3-git-send-email-liheng40@huawei.com
Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 73883435ab58..14656da20d07 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -4933,8 +4933,6 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha) return QLA_MEMORY_ALLOC_FAILED; } - memset(els_cmd_map, 0, ELS_CMD_MAP_SIZE); - /* List of Purex ELS */ cmd_opcode[0] = ELS_FPIN; cmd_opcode[1] = ELS_RDP; |