dma: tegra20-apb-dma: remove unnecessary assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 09:00:20 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Feb 2013 14:30:54 +0000 (20:00 +0530)
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>
drivers/dma/tegra20-apb-dma.c

index 6c144814a896abaafef64b53603588e639031390..c71812f8d9c17d42c140b456c723ea687a032c4a 100644 (file)
@@ -767,7 +767,6 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc,
 
        ret = dma_cookie_status(dc, cookie, txstate);
        if (ret == DMA_SUCCESS) {
-               dma_set_residue(txstate, 0);
                spin_unlock_irqrestore(&tdc->lock, flags);
                return ret;
        }