summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-06 12:37:08 +0200
committerVinod Koul <vinod.koul@intel.com>2013-08-13 13:24:42 +0200
commit4c14372590d0b86476bf2f23b2ce4b93352d14bf (patch)
tree3953746e5c558c6c96100e07ad20669be8d456ff /drivers/dma
parentdma: mmp_pdma: Staticize mmp_pdma_alloc_descriptor() (diff)
downloadlinux-4c14372590d0b86476bf2f23b2ce4b93352d14bf.tar.xz
linux-4c14372590d0b86476bf2f23b2ce4b93352d14bf.zip
dma: mv_xor: use NULL instead of 0
%p is used, thus NULL should be used instead of 0 in order to fix the following sparse warning: drivers/dma/mv_xor.c:648:9: 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')
-rw-r--r--drivers/dma/mv_xor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 200f1a3c9a44..534e2febd277 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -647,7 +647,7 @@ mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
dev_dbg(mv_chan_to_devp(mv_chan),
"%s sw_desc %p async_tx %p\n",
- __func__, sw_desc, sw_desc ? &sw_desc->async_tx : 0);
+ __func__, sw_desc, sw_desc ? &sw_desc->async_tx : NULL);
return sw_desc ? &sw_desc->async_tx : NULL;
}