From: ye.xingchen@xxxxxxxxxx
Sent: 17 January 2023 09:21
Instead of using dma_alloc_coherent() and memset() directly use
dma_zalloc_coherent().
I'm sure I've a brain cell that remembers that dma_alloc_coherent()
always zeros the buffer.
So the 'zalloc' variant isn't needed and the memset() can just
be deleted.
OTOH is it really worth the churn.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)