diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-05-27 11:14:56 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-28 10:38:22 +0200 |
commit | 8b93252a30c00b6df7b96ff5305760c53d20ca18 (patch) | |
tree | b24e9cd95d6fa7385c6b1ef38fe7e047a5cb677a /drivers/dma | |
parent | ed671ab889f1b30eb40794625e8b12d13a308beb (diff) | |
download | barebox-8b93252a30c00b6df7b96ff5305760c53d20ca18.tar.gz barebox-8b93252a30c00b6df7b96ff5305760c53d20ca18.tar.xz |
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 <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/apbh_dma.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |