summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2015-02-20 13:28:44 +0100
committerVinod Koul <vinod.koul@intel.com>2015-03-05 17:38:46 +0100
commit26f7af37eeaab359c3013c704f75749a2b5ce1b1 (patch)
treed9ab9fd02252b3a2f5ef9c5bba17fb4ccad61005 /drivers/dma
parentdmaengine: Remove net_dma_find_channel (diff)
downloadlinux-26f7af37eeaab359c3013c704f75749a2b5ce1b1.tar.xz
linux-26f7af37eeaab359c3013c704f75749a2b5ce1b1.zip
dmaengine: jz4740: Remove extra check
Remove double check on chan->desc. Found by Coccinelle. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/dma-jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dma-jz4740.c b/drivers/dma/dma-jz4740.c
index 4527a3ebeac4..f6a4c4270dcd 100644
--- a/drivers/dma/dma-jz4740.c
+++ b/drivers/dma/dma-jz4740.c
@@ -343,7 +343,7 @@ static void jz4740_dma_chan_irq(struct jz4740_dmaengine_chan *chan)
{
spin_lock(&chan->vchan.lock);
if (chan->desc) {
- if (chan->desc && chan->desc->cyclic) {
+ if (chan->desc->cyclic) {
vchan_cyclic_callback(&chan->desc->vdesc);
} else {
if (chan->next_sg == chan->desc->num_sgs) {