]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: bnx2fc: Use zeroing allocator rather than allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Tue, 9 Jan 2018 09:06:51 +0000 (14:36 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:09 +0000 (23:25 -0500)
commitbb5420c39ed2276da2fb583df0d463653ca9b74f
tree29f8f48ef89e1d7876874403e8f48dec629625e2
parent468f4b8d0711146f0075513e6047079a26fc3903
scsi: bnx2fc: 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: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_hwi.c
drivers/scsi/bnx2fc/bnx2fc_tgt.c