aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-02-14 04:00:20 -0500
committerVinod Koul <vinod.koul@intel.com>2013-02-14 09:30:54 -0500
commita72208733f7866972bcba7995f7e598ad07f1158 (patch)
treee1007caa6c25d33e401a5cc46949d01df158937d /drivers/dma
parent373459eee0cd79f775ef9874395bb37638154777 (diff)
dma: tegra20-apb-dma: remove unnecessary assignment
There is no need to assign 0 to residue, because dma_cookie_status() does this for us. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/tegra20-apb-dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 6c144814a896..c71812f8d9c1 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -767,7 +767,6 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc,
767 767
768 ret = dma_cookie_status(dc, cookie, txstate); 768 ret = dma_cookie_status(dc, cookie, txstate);
769 if (ret == DMA_SUCCESS) { 769 if (ret == DMA_SUCCESS) {
770 dma_set_residue(txstate, 0);
771 spin_unlock_irqrestore(&tdc->lock, flags); 770 spin_unlock_irqrestore(&tdc->lock, flags);
772 return ret; 771 return ret;
773 } 772 }