mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
[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>
This commit is contained in:
parent
d0df3c3847
commit
121b3ddbe4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue