From: Fuqian Huang Date: Mon, 15 Jul 2019 03:18:51 +0000 (-0300) Subject: media: exynos4-is: Remove call to memset after dma_alloc_coherent X-Git-Tag: v5.4-rc1~145^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=009b37c65df54761a64562da37f919fc44909a16;p=platform%2Fkernel%2Flinux-rpi.git media: exynos4-is: Remove call to memset after dma_alloc_coherent 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 Reviewed-by: Sylwester Nawrocki Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c index b7cc8e6..64148b7 100644 --- a/drivers/media/platform/exynos4-is/fimc-is.c +++ b/drivers/media/platform/exynos4-is/fimc-is.c @@ -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);