[media] videobuf-dma-contig: Use NULL instead of plain integer
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 12 Jul 2012 10:39:50 +0000 (07:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 23:22:37 +0000 (20:22 -0300)
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 <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-contig.c

index f68284655f206d03140424b3afbcbd289ec689bc..3a43ba0959bf15a1a23f7152c03efa6c1449bc78 100644 (file)
@@ -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;
                        }
                }