From: Sachin Kamat Date: Thu, 12 Jul 2012 10:39:50 +0000 (-0300) Subject: [media] videobuf-dma-contig: Use NULL instead of plain integer X-Git-Tag: upstream/snapshot3+hdmi~4891^2~1776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79ef87edea252c3325f0be8aed684db72dc7e46c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] videobuf-dma-contig: Use NULL instead of plain integer Fixes the following sparse warning: drivers/media/video/videobuf-dma-contig.c:59:46: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index f682846..3a43ba0 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c @@ -56,7 +56,7 @@ static int __videobuf_dc_alloc(struct device *dev, dev_err(dev, "dma_map_single failed\n"); free_pages_exact(mem->vaddr, mem->size); - mem->vaddr = 0; + mem->vaddr = NULL; return err; } }