Skip to contentSkip to conversation

drivers: dma: Remove extra check

PATCH Applied Tapasweni Pathak 2 participants 2 messages Feb 20, 2015 – Mar 5, 2015 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: dma: Remove extra check

Remove double check on chan->desc.

Found by Coccinelle.

---
 drivers/dma/dma-jz4740.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dma-jz4740.c +1 -1
index 4527a3e..f6a4c42 100644
@@ -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) {

--
1.7.9.5

Applied
#1 lore raw
Quoted 4 lines · Tapasweni Pathak

Remove double check on chan->desc.

Found by Coccinelle.

Please use the right substem name in patches. Hint git log is your friend

Applied, now

Signature · 1 line
~Vinod