]> git.baikalelectronics.ru Git - 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)
commit98ffce359a54ffe89590a8d0726253ebe1ebfeca
tree29f8f48ef89e1d7876874403e8f48dec629625e2
parent1c6da93ab4a2d506754fd831e7fce543179b431e
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