aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/mxs-dma.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-05-27 08:14:32 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-05 00:02:24 -0400
commit09d16690cb9b3f1d67b67f70c7bad136deefca72 (patch)
tree1f81b73f150933efb1328f34cd930068665b02cb /drivers/dma/mxs-dma.c
parente8e3a79001ec6f563c7cb3bb87b773bf6c5e5db7 (diff)
mxs-dma: remove useless variable
last_used variable is applied only once, so, let's substitute it by its value. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mxs-dma.c')
-rw-r--r--drivers/dma/mxs-dma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 719593002ab7..6fb4b7bc448f 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -622,10 +622,8 @@ static enum dma_status mxs_dma_tx_status(struct dma_chan *chan,
622 dma_cookie_t cookie, struct dma_tx_state *txstate) 622 dma_cookie_t cookie, struct dma_tx_state *txstate)
623{ 623{
624 struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan); 624 struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan);
625 dma_cookie_t last_used;
626 625
627 last_used = chan->cookie; 626 dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, 0);
628 dma_set_tx_state(txstate, chan->completed_cookie, last_used, 0);
629 627
630 return mxs_chan->status; 628 return mxs_chan->status;
631} 629}