Himanshu,
> Use dma_zalloc_coherent instead of dma_alloc_coherent followed by
> memset 0.
Applied to 4.16/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
On 30/12/17 8:58 PM, "Himanshu Jha" wrote:
>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
>Signed-off-by: Himanshu Jha
>---
> drivers/scsi/bnx2i/bnx2i_hwi.c | 1
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
Signed-off-by: Himanshu Jha
---
drivers/scsi/bnx2i/bnx2i_hwi.c | 14 ++
1 file changed, 6 insertions(+), 8 del
3 matches
Mail list logo