summaryrefslogtreecommitdiffstats
path: root/drivers/dma/edma.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-11-13 07:36:24 +0100
committerVinod Koul <vinod.koul@intel.com>2013-11-13 09:40:20 +0100
commitb6d5050cccf6f5b664a9601f4a274175ed6ab0b4 (patch)
treed1987a8255627582b9e7a9c357e5be0d976e385d /drivers/dma/edma.c
parentdma: cppi41: return code > 0 of pm_runtime_get_sync() is not an error (diff)
downloadlinux-b6d5050cccf6f5b664a9601f4a274175ed6ab0b4.tar.xz
linux-b6d5050cccf6f5b664a9601f4a274175ed6ab0b4.zip
dmaengine: edma: remove duplicate kfree
fixing of freeing descriptor memory was applied twice, so remove the one duplicate Reported-by: Wing-Keung Wang <wingkeung.wang@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/edma.c')
-rw-r--r--drivers/dma/edma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 592f3be8b435..ab48430765b8 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -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;
}
}