From 12154c87374c90b3b6bc169e1162aa4a27e91a63 Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Wed, 7 Dec 2016 09:36:22 +0530 Subject: dmaengine: at_hdmac: move to dma_pool_zalloc Replace dma_pool_alloc & memset with dma_pool_zalloc. Signed-off-by: Vinod Koul --- drivers/dma/at_hdmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/dma') diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index a4c8f80db29d..1baf3404a365 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -111,9 +111,8 @@ static struct at_desc *atc_alloc_descriptor(struct dma_chan *chan, struct at_dma *atdma = to_at_dma(chan->device); dma_addr_t phys; - desc = dma_pool_alloc(atdma->dma_desc_pool, gfp_flags, &phys); + desc = dma_pool_zalloc(atdma->dma_desc_pool, gfp_flags, &phys); if (desc) { - memset(desc, 0, sizeof(struct at_desc)); INIT_LIST_HEAD(&desc->tx_list); dma_async_tx_descriptor_init(&desc->txd, chan); /* txd.flags will be overwritten in prep functions */ -- cgit v1.2.3-59-g8ed1b