diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-07-12 12:39:50 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-31 01:22:37 +0200 |
commit | 79ef87edea252c3325f0be8aed684db72dc7e46c (patch) | |
tree | 06354c719d4c24b84d270c9df510c26c27b02fa8 /drivers/media/video/videobuf-dma-contig.c | |
parent | [media] radio-si470x: Lower firmware version requirements (diff) | |
download | linux-79ef87edea252c3325f0be8aed684db72dc7e46c.tar.xz linux-79ef87edea252c3325f0be8aed684db72dc7e46c.zip |
[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 <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-dma-contig.c')
-rw-r--r-- | drivers/media/video/videobuf-dma-contig.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |