diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-04-25 00:12:48 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-08 19:35:14 +0200 |
commit | 121b3ddbe4ad17df77cb7284239be0a63d9a66bd (patch) | |
tree | 740808a5a5eaed86386076d600310858060396f3 /drivers/media/video/videobuf2-dma-contig.c | |
parent | [media] media: videobuf2-dma-contig: include header for exported symbols (diff) | |
download | linux-121b3ddbe4ad17df77cb7284239be0a63d9a66bd.tar.xz linux-121b3ddbe4ad17df77cb7284239be0a63d9a66bd.zip |
[media] media: videobuf2-dma-contig: quiet sparse noise about plain integer as NULL pointer
The function vb2_dma_contig_vaddr returns a void * not an integer.
Quiets the sparse noise:
warning: Using plain integer as NULL pointer
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Pawel Osciak <pawel@osciak.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf2-dma-contig.c')
-rw-r--r-- | drivers/media/video/videobuf2-dma-contig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c index a1bee6c0b31d..4b7132660a93 100644 --- a/drivers/media/video/videobuf2-dma-contig.c +++ b/drivers/media/video/videobuf2-dma-contig.c @@ -86,7 +86,7 @@ static void *vb2_dma_contig_vaddr(void *buf_priv) { struct vb2_dc_buf *buf = buf_priv; if (!buf) - return 0; + return NULL; return buf->vaddr; } |