OSDN Git Service

media: exynos4-is: Remove call to memset after dma_alloc_coherent
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 15 Jul 2019 03:18:51 +0000 (00:18 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 13 Aug 2019 14:54:57 +0000 (11:54 -0300)
In commit 518a2f1925c3
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/exynos4-is/fimc-is.c

index b7cc8e6..64148b7 100644 (file)
@@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is)
                return -ENOMEM;
 
        is->memory.size = FIMC_IS_CPU_MEM_SIZE;
-       memset(is->memory.vaddr, 0, is->memory.size);
 
        dev_info(dev, "FIMC-IS CPU memory base: %#x\n", (u32)is->memory.paddr);