Commit 3b3d5b0f authored by Per Forlin's avatar Per Forlin Committed by Vinod Koul

dmaengine/ste_dma40: remove duplicate call to d40_pool_lli_free().

d40_desc_free() already calls d40_pool_lli_free().
Signed-off-by: default avatarPer Forlin <per.forlin@linaro.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent da063d26
...@@ -478,7 +478,6 @@ static struct d40_desc *d40_desc_get(struct d40_chan *d40c) ...@@ -478,7 +478,6 @@ static struct d40_desc *d40_desc_get(struct d40_chan *d40c)
list_for_each_entry_safe(d, _d, &d40c->client, node) list_for_each_entry_safe(d, _d, &d40c->client, node)
if (async_tx_test_ack(&d->txd)) { if (async_tx_test_ack(&d->txd)) {
d40_pool_lli_free(d40c, d);
d40_desc_remove(d); d40_desc_remove(d);
desc = d; desc = d;
memset(desc, 0, sizeof(*desc)); memset(desc, 0, sizeof(*desc));
...@@ -1209,7 +1208,6 @@ static void dma_tasklet(unsigned long data) ...@@ -1209,7 +1208,6 @@ static void dma_tasklet(unsigned long data)
if (!d40d->cyclic) { if (!d40d->cyclic) {
if (async_tx_test_ack(&d40d->txd)) { if (async_tx_test_ack(&d40d->txd)) {
d40_pool_lli_free(d40c, d40d);
d40_desc_remove(d40d); d40_desc_remove(d40d);
d40_desc_free(d40c, d40d); d40_desc_free(d40c, d40d);
} else { } else {
...@@ -1606,7 +1604,6 @@ static int d40_free_dma(struct d40_chan *d40c) ...@@ -1606,7 +1604,6 @@ static int d40_free_dma(struct d40_chan *d40c)
/* Release client owned descriptors */ /* Release client owned descriptors */
if (!list_empty(&d40c->client)) if (!list_empty(&d40c->client))
list_for_each_entry_safe(d, _d, &d40c->client, node) { list_for_each_entry_safe(d, _d, &d40c->client, node) {
d40_pool_lli_free(d40c, d);
d40_desc_remove(d); d40_desc_remove(d);
d40_desc_free(d40c, d); d40_desc_free(d40c, d);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment