[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220620075948.GF16517@kadam>
Date: Mon, 20 Jun 2022 10:59:48 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Zhang Zekun <zhangzekun11@...wei.com>
Cc: ezequiel@...guardiasur.com.ar, mchehab@...nel.org,
gregkh@...uxfoundation.org, linux-media@...r.kernel.org,
linux-rockchip@...ts.infradead.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
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@...wei.com>
> ---
Reviewed-by: Dan Carpenter <dan.carpenter@...cle.com>
regards,
dan carpenter
Powered by blists - more mailing lists