Skip to contentSkip to conversation

dma: sirf: use NULL instead of 0

PATCH Applied Jingoo Han 1 participant 1 message Aug 6, 2013 dmaengine

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 3/3 dma: sirf: use NULL instead of 0

sirfsoc_dma_prep_cyclic() returns pointer, thus NULL should be used instead of 0 in order to fix the following sparse warning:

drivers/dma/sirf-dma.c:598:24: warning: Using plain integer as NULL pointer

---
 drivers/dma/sirf-dma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/sirf-dma.c +1 -1
index 716b23e..973ecd0 100644
@@ -595,7 +595,7 @@ sirfsoc_dma_prep_cyclic(struct dma_chan *chan, dma_addr_t addr,
 	spin_unlock_irqrestore(&schan->lock, iflags);
 
 	if (!sdesc)
-		return 0;
+		return NULL;
 
 	/* Place descriptor in prepared list */
 	spin_lock_irqsave(&schan->lock, iflags);
Signature · 1 line
1.7.10.4