Skip to contentSkip to conversation

dma: mv_xor: 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 2/3 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

---
 drivers/dma/mv_xor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/mv_xor.c +1 -1
index 200f1a3..534e2fe 100644
@@ -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;
 }
Signature · 1 line
1.7.10.4