dma-mapping: remove dma_zalloc_coherent()
dma_zalloc_coherent() is no longer needed as it has no users because dma_alloc_coherent() already zeroes out memory for us. The Coccinelle grammar rule that used to check for dma_alloc_coherent() + memset() is modified so that it just tells the user that the memset is not needed anymore. Suggested-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Luis Chamberlain <mcgrof@kernel.org> Signed-off-by:
Christoph Hellwig <hch@lst.de>
Showing
- include/linux/dma-mapping.h 0 additions, 9 deletionsinclude/linux/dma-mapping.h
- scripts/coccinelle/api/alloc/alloc_cast.cocci 4 additions, 4 deletionsscripts/coccinelle/api/alloc/alloc_cast.cocci
- scripts/coccinelle/api/alloc/zalloc-simple.cocci 1 addition, 10 deletionsscripts/coccinelle/api/alloc/zalloc-simple.cocci
Loading
Please register or sign in to comment