summaryrefslogtreecommitdiff
path: root/drivers/dma/dma-jz4740.c
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2015-02-20 17:58:44 +0530
committerVinod Koul <vinod.koul@intel.com>2015-03-05 22:08:46 +0530
commit26f7af37eeaab359c3013c704f75749a2b5ce1b1 (patch)
treed9ab9fd02252b3a2f5ef9c5bba17fb4ccad61005 /drivers/dma/dma-jz4740.c
parentbfde98bd762346639f0a5a557e02c4828dd6273b (diff)
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/dma-jz4740.c')
-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) {