]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: comedi: pcmmio: quiet NULL pointer sparse noise
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 19 Jun 2012 00:03:17 +0000 (17:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jun 2012 00:39:21 +0000 (17:39 -0700)
commit76728a93a70f23c6376c728e337fb26473737e7f
treee80365524e0aba7ad95bcf185326aba1732cf7c8
parentd163a19d915e9bb3dfa01abc251bc4d5395dc118
staging: comedi: pcmmio: quiet NULL pointer sparse noise

The comedi_async 'inttrig' member is a pointer to a callback
function. NULL should be used to clear it not 0.

This quiets a number of sparse warnings about:

Warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcmmio.c