diff options
Diffstat (limited to 'drivers/dma/sirf-dma.c')
-rw-r--r-- | drivers/dma/sirf-dma.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index 60473f00cf1c..7bb154a85332 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -257,13 +257,7 @@ static dma_cookie_t sirfsoc_dma_tx_submit(struct dma_async_tx_descriptor *txd) | |||
257 | /* Move descriptor to queue */ | 257 | /* Move descriptor to queue */ |
258 | list_move_tail(&sdesc->node, &schan->queued); | 258 | list_move_tail(&sdesc->node, &schan->queued); |
259 | 259 | ||
260 | /* Update cookie */ | 260 | cookie = dma_cookie_assign(txd); |
261 | cookie = schan->chan.cookie + 1; | ||
262 | if (cookie <= 0) | ||
263 | cookie = 1; | ||
264 | |||
265 | schan->chan.cookie = cookie; | ||
266 | sdesc->desc.cookie = cookie; | ||
267 | 261 | ||
268 | spin_unlock_irqrestore(&schan->lock, flags); | 262 | spin_unlock_irqrestore(&schan->lock, flags); |
269 | 263 | ||