]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: qla2xxx: Use zeroing allocator rather than allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Sat, 30 Dec 2017 15:28:25 +0000 (20:58 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 06:09:26 +0000 (01:09 -0500)
commit0558312110def79e1b8bc20133dc50bb11c62e6e
treecccaa0dede85e529ac826d05ebfeab73e812d423
parentd103adb30049e293348ba6c71f5bc6636ffbeaef
scsi: qla2xxx: Use zeroing allocator rather than allocator/memset

Use dma_zalloc_coherent and vzalloc instead of dma_alloc_coherent and
vmalloc respectively, followed by memset 0.

Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci
Suggested-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_bsg.c
drivers/scsi/qla2xxx/tcm_qla2xxx.c