dect
/
linux-2.6
Archived
13
0
Fork 0

[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:
Sachin Kamat 2012-07-12 07:39:50 -03:00 committed by Mauro Carvalho Chehab
parent db3912c073
commit 79ef87edea
1 changed files with 1 additions and 1 deletions

View 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;
}
}