From 8b93252a30c00b6df7b96ff5305760c53d20ca18 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 27 May 2019 11:14:56 -0700 Subject: apbh: Do not zero out DMA coherent memory Memory returned by dma_alloc_coherent() should already be zeroed out, so there's no need to do this explicitly. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- drivers/dma/apbh_dma.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/dma') diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index 72c2f364c5..15a523ac85 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -388,7 +388,6 @@ struct mxs_dma_desc *mxs_dma_desc_alloc(void) if (pdesc == NULL) return NULL; - memset(pdesc, 0, sizeof(*pdesc)); pdesc->address = (dma_addr_t)pdesc; return pdesc; -- cgit v1.2.3