Skip to content

Commit

Permalink
media: exynos4-is: Remove call to memset after dma_alloc_coherent
Browse files Browse the repository at this point in the history
In commit 518a2f1
("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 <[email protected]>
Reviewed-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Yellow-Pay authored and mchehab committed Aug 13, 2019
1 parent 6a11f0f commit 009b37c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/platform/exynos4-is/fimc-is.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 009b37c

Please sign in to comment.