[<prev] [next>] [day] [month] [year] [list]
Message-id: <000301ce9291$039da7a0$0ad8f6e0$@samsung.com>
Date: Tue, 06 Aug 2013 19:37:56 +0900
From: Jingoo Han <jg1.han@...sung.com>
To: 'Vinod Koul' <vinod.koul@...el.com>
Cc: 'Dan Williams' <djbw@...com>, Barry Song <baohua.song@....com>,
'Rongjun Ying' <Rongjun.Ying@....com>,
linux-kernel@...r.kernel.org
Subject: [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
Signed-off-by: Jingoo Han <jg1.han@...sung.com>
---
drivers/dma/sirf-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c
index 716b23e..973ecd0 100644
--- a/drivers/dma/sirf-dma.c
+++ b/drivers/dma/sirf-dma.c
@@ -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);
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists