]> git.baikalelectronics.ru Git - kernel.git/commit
media: mtk_vcodec_util: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset
authorzhong jiang <zhongjiang@huawei.com>
Sat, 18 Aug 2018 15:16:55 +0000 (11:16 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 12 Sep 2018 14:48:59 +0000 (10:48 -0400)
commit5207e54f8d9c9c180abb95e7e9a44fd371830da6
tree94a9afcae46cada174ee170bf4c72839d443a99b
parentcfdde77d29fcffe7e8b2d7686a608bcf80e69134
media: mtk_vcodec_util: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset

dma_zalloc_coherent has implemented the dma_alloc_coherent() + memset(),
We prefer to dma_zalloc_coherent instead of open-codeing.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c