Messages in this thread | | | Date | Mon, 20 Jun 2022 10:59:48 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH -next] media:rkvdec:Remove redundant memset |
| |
On Fri, Jun 17, 2022 at 09:39:25AM +0000, Zhang Zekun wrote: > As dma_alloc_coherent() will return a zeroed buffer, we > don't need to memset the returned buffer. > priv_tbl = dma_alloc_coherent() and count_tbl = dma_alloc_coherent() > should be enough. > > -see commit 750afb08ca71 ("cross-tree: phase out dma_zalloc_coherent()") > > Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com> > ---
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
regards, dan carpenter
| |