diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-03-07 14:46:45 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2014-04-10 15:26:17 -0400 |
commit | 890766d278548afdc059cd977687c4f1297d72a0 (patch) | |
tree | dc150cac806db3e0d8d7630af494550d30130384 /drivers/dma/mv_xor.c | |
parent | 368da992b93eaf8861f1ef2d27bbe22c01140733 (diff) |
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>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index e70f271c99fa..e2c8ec91155e 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -702,10 +702,8 @@ static enum dma_status mv_xor_status(struct dma_chan *chan, | |||
702 | enum dma_status ret; | 702 | enum dma_status ret; |
703 | 703 | ||
704 | ret = dma_cookie_status(chan, cookie, txstate); | 704 | ret = dma_cookie_status(chan, cookie, txstate); |
705 | if (ret == DMA_COMPLETE) { | 705 | if (ret == DMA_COMPLETE) |
706 | mv_xor_clean_completed_slots(mv_chan); | ||
707 | return ret; | 706 | return ret; |
708 | } | ||
709 | mv_xor_slot_cleanup(mv_chan); | 707 | mv_xor_slot_cleanup(mv_chan); |
710 | 708 | ||
711 | return dma_cookie_status(chan, cookie, txstate); | 709 | return dma_cookie_status(chan, cookie, txstate); |