coccinelle: add patch rule for dma_alloc_coherent
authorAlex Dewar <alex.dewar90@gmail.com>
Thu, 20 Aug 2020 23:55:57 +0000 (00:55 +0100)
committerJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 21 Aug 2020 20:35:40 +0000 (22:35 +0200)
commit7a2624e6de03050c9f15af21c216818d5508b5e9
tree38ab3ae6ed6eb80ceef417659ca8ef4fa47c5592
parent4b2bd20c350a66d4f8a7c2da48b115fd4e06d15e
coccinelle: add patch rule for dma_alloc_coherent

Commit dfd32cad146e ("dma-mapping: remove dma_zalloc_coherent()")
removed the definition of dma_zalloc_coherent() and also removed the
corresponding patch rule for replacing instances of dma_alloc_coherent +
memset in zalloc-simple.cocci (though left the report rule).

Add a new patch rule to remove unnecessary calls to memset after
allocating with dma_alloc_coherent. While we're at it, fix a couple of
typos.

Fixes: dfd32cad146e ("dma-mapping: remove dma_zalloc_coherent()")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/api/alloc/zalloc-simple.cocci