tegra20-apb-dma: remove useless use of lock

Accordingly to dma_cookie_status() description locking is not required.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
Andy Shevchenko 2013-05-27 15:14:39 +03:00 committed by Vinod Koul
parent da0a908ed9
commit 0a0aee203c
1 changed files with 3 additions and 5 deletions

View File

@ -767,13 +767,11 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc,
unsigned long flags; unsigned long flags;
unsigned int residual; unsigned int residual;
spin_lock_irqsave(&tdc->lock, flags);
ret = dma_cookie_status(dc, cookie, txstate); ret = dma_cookie_status(dc, cookie, txstate);
if (ret == DMA_SUCCESS) { if (ret == DMA_SUCCESS)
spin_unlock_irqrestore(&tdc->lock, flags);
return ret; return ret;
}
spin_lock_irqsave(&tdc->lock, flags);
/* Check on wait_ack desc status */ /* Check on wait_ack desc status */
list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) {