diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 15:14:37 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 09:32:25 +0530 |
commit | 108fae842a2ecf6981429eb84c21eea7e888cba8 (patch) | |
tree | 253c6002177dde38c44b790c52118008bef14843 /drivers/dma/mpc512x_dma.c | |
parent | 4aa9fe0a1f307df4635822c3019bb196aa30b938 (diff) | |
download | linux-108fae842a2ecf6981429eb84c21eea7e888cba8.tar.bz2 |
mpc512x_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/mpc512x_dma.c')
-rw-r--r-- | drivers/dma/mpc512x_dma.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index 2d956732aa3d..2fe435377333 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c @@ -556,15 +556,7 @@ static enum dma_status mpc_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie, struct dma_tx_state *txstate) { - struct mpc_dma_chan *mchan = dma_chan_to_mpc_dma_chan(chan); - enum dma_status ret; - unsigned long flags; - - spin_lock_irqsave(&mchan->lock, flags); - ret = dma_cookie_status(chan, cookie, txstate); - spin_unlock_irqrestore(&mchan->lock, flags); - - return ret; + return dma_cookie_status(chan, cookie, txstate); } /* Prepare descriptor for memory to memory copy */ |