summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pch_dma.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2016-11-28 15:41:44 +0530
committerVinod Koul <vinod.koul@intel.com>2016-11-29 08:42:13 +0530
commit5c279b1003f9070b29d9e1e4da7b61126c5a46bb (patch)
treebdf83e5833fd66ea25f12a3ea1056c8e20290f99 /drivers/dma/pch_dma.c
parent942ba9dc133d82e4ce8cb006e7111aa1b3dcaec7 (diff)
downloadop-kernel-dev-5c279b1003f9070b29d9e1e4da7b61126c5a46bb.zip
op-kernel-dev-5c279b1003f9070b29d9e1e4da7b61126c5a46bb.tar.gz
dmaengine: pch_dma: Replace pci_pool_alloc by pci_pool_zalloc
Inside pdc_alloc_desc(), pci_pool_alloc() followed by memset will be replaced by pci_pool_zalloc() Signed-off-by: Souptick joarder <jrdr.linux@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pch_dma.c')
-rw-r--r--drivers/dma/pch_dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index df95727d..b8d858c 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -439,9 +439,8 @@ static struct pch_dma_desc *pdc_alloc_desc(struct dma_chan *chan, gfp_t flags)
struct pch_dma *pd = to_pd(chan->device);
dma_addr_t addr;
- desc = pci_pool_alloc(pd->pool, flags, &addr);
+ desc = pci_pool_zalloc(pd->pool, flags, &addr);
if (desc) {
- memset(desc, 0, sizeof(struct pch_dma_desc));
INIT_LIST_HEAD(&desc->tx_list);
dma_async_tx_descriptor_init(&desc->txd, chan);
desc->txd.tx_submit = pd_tx_submit;
OpenPOWER on IntegriCloud