From: H Hartley Sweeten Date: Tue, 24 Apr 2012 22:12:48 +0000 (-0300) Subject: [media] media: videobuf2-dma-contig: quiet sparse noise about plain integer as NULL... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=121b3ddbe4ad17df77cb7284239be0a63d9a66bd;p=openwrt%2Fstaging%2Fblogic.git [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 Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Mauro Carvalho Chehab Acked-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- 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; }