From: Tapasweni Pathak Date: Fri, 20 Feb 2015 12:28:44 +0000 (+0530) Subject: dmaengine: jz4740: Remove extra check X-Git-Tag: v5.15~15870^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26f7af37eeaab359c3013c704f75749a2b5ce1b1;p=platform%2Fkernel%2Flinux-starfive.git dmaengine: jz4740: Remove extra check Remove double check on chan->desc. Found by Coccinelle. Signed-off-by: Tapasweni Pathak Acked-by: Julia Lawall Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dma-jz4740.c b/drivers/dma/dma-jz4740.c index 4527a3e..f6a4c42 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) {