aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2015-02-20 07:28:44 -0500
committerVinod Koul <vinod.koul@intel.com>2015-03-05 11:38:46 -0500
commit26f7af37eeaab359c3013c704f75749a2b5ce1b1 (patch)
treed9ab9fd02252b3a2f5ef9c5bba17fb4ccad61005 /drivers/dma
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')
-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)
343{ 343{
344 spin_lock(&chan->vchan.lock); 344 spin_lock(&chan->vchan.lock);
345 if (chan->desc) { 345 if (chan->desc) {
346 if (chan->desc && chan->desc->cyclic) { 346 if (chan->desc->cyclic) {
347 vchan_cyclic_callback(&chan->desc->vdesc); 347 vchan_cyclic_callback(&chan->desc->vdesc);
348 } else { 348 } else {
349 if (chan->next_sg == chan->desc->num_sgs) { 349 if (chan->next_sg == chan->desc->num_sgs) {