Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2018-01-02 Thread Mathias Nyman
On 30.12.2017 22:03, Himanshu Jha wrote: Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez

Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2018-01-01 Thread Himanshu Jha
On Mon, Jan 01, 2018 at 10:53:07AM -0500, Alan Stern wrote: > On Mon, 1 Jan 2018, Himanshu Jha wrote: > > > On Sun, Dec 31, 2017 at 04:20:45PM -0500, Alan Stern wrote: > > > On Sun, 31 Dec 2017, Himanshu Jha wrote: > > > > > > > Use dma_zalloc_coherent for allocating zeroed > > > > memory and

Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2018-01-01 Thread Alan Stern
On Mon, 1 Jan 2018, Himanshu Jha wrote: > On Sun, Dec 31, 2017 at 04:20:45PM -0500, Alan Stern wrote: > > On Sun, 31 Dec 2017, Himanshu Jha wrote: > > > > > Use dma_zalloc_coherent for allocating zeroed > > > memory and remove unnecessary memset function. > > > > > > Done using Coccinelle. > >

Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2018-01-01 Thread Himanshu Jha
On Sun, Dec 31, 2017 at 04:20:45PM -0500, Alan Stern wrote: > On Sun, 31 Dec 2017, Himanshu Jha wrote: > > > Use dma_zalloc_coherent for allocating zeroed > > memory and remove unnecessary memset function. > > > > Done using Coccinelle. > > Generated-by:

Re: [PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-31 Thread Alan Stern
On Sun, 31 Dec 2017, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggested-by: Luis R.

[PATCH v2] USB: host: Use zeroing memory allocator rather than allocator/memset

2017-12-30 Thread Himanshu Jha
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez Signed-off-by: Himanshu Jha