diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 08:14:34 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 00:02:24 -0400 |
commit | 2302cec2240de28ee1c6977dbbcce308bce8af83 (patch) | |
tree | db565a4c0a42dec623eb27f3501d06c4c7d75ad7 /drivers/dma/ep93xx_dma.c | |
parent | 43e33e484e3119520a26567f6e9f195617463b05 (diff) |
ep93xx_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>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ep93xx_dma.c')
-rw-r--r-- | drivers/dma/ep93xx_dma.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index f2bf8c0c4675..591cd8c63abb 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c | |||
@@ -1313,15 +1313,7 @@ static enum dma_status ep93xx_dma_tx_status(struct dma_chan *chan, | |||
1313 | dma_cookie_t cookie, | 1313 | dma_cookie_t cookie, |
1314 | struct dma_tx_state *state) | 1314 | struct dma_tx_state *state) |
1315 | { | 1315 | { |
1316 | struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan); | 1316 | return dma_cookie_status(chan, cookie, state); |
1317 | enum dma_status ret; | ||
1318 | unsigned long flags; | ||
1319 | |||
1320 | spin_lock_irqsave(&edmac->lock, flags); | ||
1321 | ret = dma_cookie_status(chan, cookie, state); | ||
1322 | spin_unlock_irqrestore(&edmac->lock, flags); | ||
1323 | |||
1324 | return ret; | ||
1325 | } | 1317 | } |
1326 | 1318 | ||
1327 | /** | 1319 | /** |