mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
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>
This commit is contained in:
parent
4aa9fe0a1f
commit
108fae842a
@ -556,15 +556,7 @@ static enum dma_status
|
|||||||
mpc_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
|
mpc_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
|
||||||
struct dma_tx_state *txstate)
|
struct dma_tx_state *txstate)
|
||||||
{
|
{
|
||||||
struct mpc_dma_chan *mchan = dma_chan_to_mpc_dma_chan(chan);
|
return dma_cookie_status(chan, cookie, txstate);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prepare descriptor for memory to memory copy */
|
/* Prepare descriptor for memory to memory copy */
|
||||||
|
Loading…
Reference in New Issue
Block a user