dma: sirf: use NULL instead of 0
authorJingoo Han <jg1.han@samsung.com>
Tue, 6 Aug 2013 10:37:56 +0000 (19:37 +0900)
committerVinod Koul <vinod.koul@intel.com>
Tue, 13 Aug 2013 11:24:42 +0000 (16:54 +0530)
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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c

index 716b23e4f327e13d96be6b046bc6926f8988b3dd..973ecd05dffdd13b20669cf72597941256cac8aa 100644 (file)
@@ -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);