diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 08:14:35 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 00:02:24 -0400 |
commit | 9b0b0bdc6a3ba70b73ea2fdd6c09ee46b34d3f94 (patch) | |
tree | 796d07a1987283841d43bee1ad8da63bc9ab052f /drivers/dma | |
parent | 2302cec2240de28ee1c6977dbbcce308bce8af83 (diff) |
fsldma: 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: Li Yang <leoli@freescale.com>
Cc: Zhang Wei <zw@zh-kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/fsldma.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 49e8fbdb8983..b3f3e90054f2 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
@@ -979,15 +979,7 @@ static enum dma_status fsl_tx_status(struct dma_chan *dchan, | |||
979 | dma_cookie_t cookie, | 979 | dma_cookie_t cookie, |
980 | struct dma_tx_state *txstate) | 980 | struct dma_tx_state *txstate) |
981 | { | 981 | { |
982 | struct fsldma_chan *chan = to_fsl_chan(dchan); | 982 | return dma_cookie_status(dchan, cookie, txstate); |
983 | enum dma_status ret; | ||
984 | unsigned long flags; | ||
985 | |||
986 | spin_lock_irqsave(&chan->desc_lock, flags); | ||
987 | ret = dma_cookie_status(dchan, cookie, txstate); | ||
988 | spin_unlock_irqrestore(&chan->desc_lock, flags); | ||
989 | |||
990 | return ret; | ||
991 | } | 983 | } |
992 | 984 | ||
993 | /*----------------------------------------------------------------------------*/ | 985 | /*----------------------------------------------------------------------------*/ |