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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79ef87edea252c3325f0be8aed684db72dc7e46c;p=openwrt%2Fstaging%2Fblogic.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 f68284655f20..3a43ba0959bf 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; } }