diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-06 06:37:56 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-13 07:24:42 -0400 |
commit | 696b4ff8b2e6fd3f01c9acf6687ec4660143b614 (patch) | |
tree | 3c03ac5ad8840825a861edc4d491d76698b7171a /drivers/dma/sirf-dma.c | |
parent | 4c14372590d0b86476bf2f23b2ce4b93352d14bf (diff) |
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@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sirf-dma.c')
-rw-r--r-- | drivers/dma/sirf-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index 716b23e4f327..973ecd05dffd 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, | |||
595 | spin_unlock_irqrestore(&schan->lock, iflags); | 595 | spin_unlock_irqrestore(&schan->lock, iflags); |
596 | 596 | ||
597 | if (!sdesc) | 597 | if (!sdesc) |
598 | return 0; | 598 | return NULL; |
599 | 599 | ||
600 | /* Place descriptor in prepared list */ | 600 | /* Place descriptor in prepared list */ |
601 | spin_lock_irqsave(&schan->lock, iflags); | 601 | spin_lock_irqsave(&schan->lock, iflags); |