dmaengine: edma: remove duplicate kfree
authorVinod Koul <vinod.koul@intel.com>
Wed, 13 Nov 2013 06:36:24 +0000 (12:06 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Nov 2013 08:40:20 +0000 (14:10 +0530)
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>
drivers/dma/edma.c

index 592f3be8b435ef5b345de2e96f6736d4b1fa2965..ab48430765b82665905f861e6151bf193843e8f4 100644 (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;
                        }
                }