]> Git Repo - linux.git/commitdiff
[media] media: videobuf2-dma-contig: quiet sparse noise about plain integer as NULL...
authorH Hartley Sweeten <[email protected]>
Tue, 24 Apr 2012 22:12:48 +0000 (19:12 -0300)
committerMauro Carvalho Chehab <[email protected]>
Tue, 8 May 2012 12:13:04 +0000 (09:13 -0300)
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 <[email protected]>
Cc: Pawel Osciak <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/video/videobuf2-dma-contig.c

index f17ad98fcc5fa61e09d87af99a57b6934443e656..7de6843a19284b9f25803c7865e2673c433b107b 100644 (file)
@@ -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;
 }
This page took 0.052076 seconds and 4 git commands to generate.