diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-04-24 18:12:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-08 08:13:04 -0400 |
commit | 8106a3908157e753ce8409c33ef8f2d90be58d9b (patch) | |
tree | bd176ba5218121e753fbebb2e553f3d1f0f2a214 | |
parent | 43c286023ee19fe7a697d6c1ac5453a3ef4452a6 (diff) |
[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: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-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 f17ad98fcc5f..7de6843a1928 100644 --- a/drivers/media/video/videobuf2-dma-contig.c +++ b/drivers/media/video/videobuf2-dma-contig.c | |||
@@ -85,7 +85,7 @@ static void *vb2_dma_contig_vaddr(void *buf_priv) | |||
85 | { | 85 | { |
86 | struct vb2_dc_buf *buf = buf_priv; | 86 | struct vb2_dc_buf *buf = buf_priv; |
87 | if (!buf) | 87 | if (!buf) |
88 | return 0; | 88 | return NULL; |
89 | 89 | ||
90 | return buf->vaddr; | 90 | return buf->vaddr; |
91 | } | 91 | } |