dma: mv_xor: Remove unneeded mv_xor_clean_completed_slots() call

In mv_xor_status(), we are currently calling mv_xor_clean_completed_slots()
when the transaction is complete (the cookie status is DMA_COMPLETE).
However, a completed status means that mv_xor_slot_cleanup() was called,
which cleans the completed slots.

In other words, there's nothing to cleanup for a completed transaction in
mv_xor_status(). Remove the unneeded call to mv_xor_clean_completed_slots().

Reported-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Ezequiel Garcia 2014-03-07 16:46:45 -03:00 коммит произвёл Dan Williams
Родитель 368da992b9
Коммит 890766d278
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -702,10 +702,8 @@ static enum dma_status mv_xor_status(struct dma_chan *chan,
enum dma_status ret; enum dma_status ret;
ret = dma_cookie_status(chan, cookie, txstate); ret = dma_cookie_status(chan, cookie, txstate);
if (ret == DMA_COMPLETE) { if (ret == DMA_COMPLETE)
mv_xor_clean_completed_slots(mv_chan);
return ret; return ret;
}
mv_xor_slot_cleanup(mv_chan); mv_xor_slot_cleanup(mv_chan);
return dma_cookie_status(chan, cookie, txstate); return dma_cookie_status(chan, cookie, txstate);