mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[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]>
This commit is contained in:
parent
43c286023e
commit
8106a39081
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue