dmaengine: edma: remove duplicate kfree

fixing of freeing descriptor memory was applied twice, so remove the one
duplicate

Reported-by: Wing-Keung Wang <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
Vinod Koul 2013-11-13 12:06:24 +05:30
commit b6d5050ccc

View file

@ -428,7 +428,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
if (echan->slot[i] < 0) {
kfree(edesc);
dev_err(dev, "Failed to allocate slot\n");
kfree(edesc);
return NULL;
}
}