Skip to content

Commit

Permalink
[media] videobuf-dma-contig: Use NULL instead of plain integer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Jul 30, 2012
1 parent db3912c commit 79ef87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/videobuf-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 79ef87e

Please sign in to comment.