diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-07-12 06:39:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 19:22:37 -0400 |
commit | 79ef87edea252c3325f0be8aed684db72dc7e46c (patch) | |
tree | 06354c719d4c24b84d270c9df510c26c27b02fa8 /drivers | |
parent | db3912c07349f00923d1c95dadd1e83371dce485 (diff) |
[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')
-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 f68284655f2..3a43ba0959b 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, | |||
56 | dev_err(dev, "dma_map_single failed\n"); | 56 | dev_err(dev, "dma_map_single failed\n"); |
57 | 57 | ||
58 | free_pages_exact(mem->vaddr, mem->size); | 58 | free_pages_exact(mem->vaddr, mem->size); |
59 | mem->vaddr = 0; | 59 | mem->vaddr = NULL; |
60 | return err; | 60 | return err; |
61 | } | 61 | } |
62 | } | 62 | } |