]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkvdec:Remove redundant memset
authorZhang Zekun <zhangzekun11@huawei.com>
Fri, 17 Jun 2022 09:39:25 +0000 (10:39 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 08:13:03 +0000 (09:13 +0100)
commitfa7b17f1cd3ae5c10eb435067da2b2982e44ddae
treee90a4142f3d2723ef08f80a6615f1407f6390632
parent7604957cd6882f0810bb68b5cbef4c685ac8cf28
media: rkvdec:Remove redundant memset

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 7187b53d97de ("cross-tree: phase out dma_zalloc_coherent()")

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/rkvdec/rkvdec-vp9.c