[PATCH -next] media:rkvdec:Remove redundant memset
Dan Carpenter
dan.carpenter at oracle.com
Mon Jun 20 00:59:48 PDT 2022
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 at huawei.com>
> ---
Reviewed-by: Dan Carpenter <dan.carpenter at oracle.com>
regards,
dan carpenter
More information about the Linux-rockchip
mailing list