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

Use dma_zalloc_coherent instead of dma_alloc_coherent 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: Manish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_init.c
drivers/scsi/qla4xxx/ql4_mbx.c
drivers/scsi/qla4xxx/ql4_nx.c
drivers/scsi/qla4xxx/ql4_os.c