mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
db3912c073
commit
79ef87edea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue