Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1393156
| From | Herbert Xu <herbert@gondor.apana.org.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/5] crypto: Use dma_pool_zalloc |
| Date | 2016-05-03 10:20 +0200 |
| Message-ID | <ruDIK-4pf-15@gated-at.bofh.it> (permalink) |
| References | <rtncZ-3HL-5@gated-at.bofh.it> <rtncZ-3HL-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Apr 29, 2016 at 10:09:11PM +0200, Julia Lawall wrote: > Dma_pool_zalloc combines dma_pool_alloc and memset 0. The semantic patch > that makes this transformation is as follows: (http://coccinelle.lip6.fr/) > > // <smpl> > @@ > expression d,e; > statement S; > @@ > > d = > - dma_pool_alloc > + dma_pool_zalloc > (...); > if (!d) S > - memset(d, 0, sizeof(*d)); > // </smpl> > > Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Applied. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 4/5] crypto: Use dma_pool_zalloc Julia Lawall <Julia.Lawall@lip6.fr> - 2016-04-29 22:30 +0200 Re: [PATCH 4/5] crypto: Use dma_pool_zalloc Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-29 22:40 +0200 Re: [PATCH 4/5] crypto: Use dma_pool_zalloc Herbert Xu <herbert@gondor.apana.org.au> - 2016-05-03 10:20 +0200
csiph-web