Skip to content

Commit

Permalink
[media] media: videobuf2-dma-contig: quiet sparse noise about plain i…
Browse files Browse the repository at this point in the history
…nteger 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>
  • Loading branch information
H Hartley Sweeten authored and Mauro Carvalho Chehab committed May 8, 2012
1 parent 43c2860 commit 8106a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/videobuf2-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,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;
}
Expand Down

0 comments on commit 8106a39

Please sign in to comment.