Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c279b10 authored by Souptick Joarder's avatar Souptick Joarder Committed by Vinod Koul
Browse files

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: default avatarSouptick joarder <jrdr.linux@gmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 942ba9dc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;