OSDN Git Service

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)
commitee23c78c79b6599c9791d7615f0282aa1536b019
tree94a9afcae46cada174ee170bf4c72839d443a99b
parenteac7230fdb4672c2cb56f6a01a1744f562c01f80
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