diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-18 11:51:41 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:52:21 -0800 |
commit | b1853a4f28db5b532542426965198171ef8ab6a0 (patch) | |
tree | 39d4215347ffb973b28836fbe58b42609d7d2117 | |
parent | 98f3c672b55cd246c62b763986a494152c7f2483 (diff) |
Staging: comedi: dt9812: fix sparse warnings
remove all warnings that sparse complains about in the dt9812 driver
Cc: Anders Blomdell <anders.blomdell@control.lth.se>
Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/dt9812.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c index 369048e50ef..70ea748caab 100644 --- a/drivers/staging/comedi/drivers/dt9812.c +++ b/drivers/staging/comedi/drivers/dt9812.c @@ -769,8 +769,6 @@ static int dt9812_probe(struct usb_interface *interface, * Seems like a configuration reset is necessary if driver is * reloaded while device is attached */ - int i; - usb_reset_configuration(dev->udev); for (i = 0; i < 10; i++) { retval = dt9812_read_info(dev, 1, &fw, sizeof(fw)); @@ -1060,7 +1058,7 @@ static int dt9812_attach(comedi_device *dev, comedi_devconfig *it) s->subdev_flags = SDF_READABLE | SDF_GROUND; s->n_chan = 0; s->maxdata = 1; - s->range_table = 0; + s->range_table = NULL; s->insn_read = &dt9812_ai_rinsn; /* analog output subdevice */ @@ -1069,7 +1067,7 @@ static int dt9812_attach(comedi_device *dev, comedi_devconfig *it) s->subdev_flags = SDF_WRITEABLE; s->n_chan = 0; s->maxdata = 1; - s->range_table = 0; + s->range_table = NULL; s->insn_write = &dt9812_ao_winsn; s->insn_read = &dt9812_ao_rinsn; |