Skip to content

Commit

Permalink
Staging: comedi: amplc_dio200.c: fix NULL sparse warnings
Browse files Browse the repository at this point in the history
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent f31d000 commit a7f22a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/comedi/drivers/amplc_dio200.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ dio200_inttrig_start_intr(struct comedi_device *dev, struct comedi_subdevice *s,
subpriv = s->private;

spin_lock_irqsave(&subpriv->spinlock, flags);
s->async->inttrig = 0;
s->async->inttrig = NULL;
if (subpriv->active)
event = dio200_start_intr(dev, s);

Expand Down Expand Up @@ -1364,7 +1364,7 @@ static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it)
break;
case sd_8255:
/* digital i/o subdevice (8255) */
ret = subdev_8255_init(dev, s, 0,
ret = subdev_8255_init(dev, s, NULL,
iobase + layout->sdinfo[n]);
if (ret < 0)
return ret;
Expand Down

0 comments on commit a7f22a8

Please sign in to comment.