diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-09-17 13:17:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-17 15:03:52 -0700 |
commit | 920e2ffbe243fb0555b2c238e26fe7dbc03db98c (patch) | |
tree | 453077b19cd49c2bf072a395892b64808ebe6921 | |
parent | 765c3c64f76a786cd01f3b479ee63b79cb9343d0 (diff) | |
download | kernel_goldelico_gta04-920e2ffbe243fb0555b2c238e26fe7dbc03db98c.zip kernel_goldelico_gta04-920e2ffbe243fb0555b2c238e26fe7dbc03db98c.tar.gz kernel_goldelico_gta04-920e2ffbe243fb0555b2c238e26fe7dbc03db98c.tar.bz2 |
staging: comedi: pcmuio: pointers should be cleared with NULL
Pointer variables should be cleared with NULL on 0. This quiets
some 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/pcmuio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index aba6b45..0e32119 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -442,7 +442,7 @@ static void pcmuio_stop_intr(struct comedi_device *dev, subpriv->intr.enabled_mask = 0; subpriv->intr.active = 0; - s->async->inttrig = 0; + s->async->inttrig = NULL; nports = subpriv->intr.num_asic_chans / CHANS_PER_PORT; firstport = subpriv->intr.asic_chan / CHANS_PER_PORT; switch_page(dev, asic, PAGE_ENAB); @@ -683,7 +683,7 @@ pcmuio_inttrig_start_intr(struct comedi_device *dev, struct comedi_subdevice *s, return -EINVAL; spin_lock_irqsave(&subpriv->intr.spinlock, flags); - s->async->inttrig = 0; + s->async->inttrig = NULL; if (subpriv->intr.active) event = pcmuio_start_intr(dev, s); |