Commit 009b37c6 authored by Fuqian Huang's avatar Fuqian Huang Committed by Mauro Carvalho Chehab

media: exynos4-is: Remove call to memset after dma_alloc_coherent

In commit 518a2f19
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed
Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 6a11f0f5
...@@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is) ...@@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is)
return -ENOMEM; return -ENOMEM;
is->memory.size = FIMC_IS_CPU_MEM_SIZE; 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); dev_info(dev, "FIMC-IS CPU memory base: %#x\n", (u32)is->memory.paddr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment