Commit 2302cec2 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul

ep93xx_dma: remove useless use of lock

Accordingly to dma_cookie_status() description locking is not required.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 43e33e48
...@@ -1313,15 +1313,7 @@ static enum dma_status ep93xx_dma_tx_status(struct dma_chan *chan, ...@@ -1313,15 +1313,7 @@ static enum dma_status ep93xx_dma_tx_status(struct dma_chan *chan,
dma_cookie_t cookie, dma_cookie_t cookie,
struct dma_tx_state *state) struct dma_tx_state *state)
{ {
struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan); return dma_cookie_status(chan, cookie, state);
enum dma_status ret;
unsigned long flags;
spin_lock_irqsave(&edmac->lock, flags);
ret = dma_cookie_status(chan, cookie, state);
spin_unlock_irqrestore(&edmac->lock, flags);
return ret;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment