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@xxxxxxxxx> --- drivers/dma/apbh_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index 72c2f364c..15a523ac8 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; -- 2.21.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox