aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-11-19 13:22:51 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 16:52:25 -0500
commite0639d7644d8bd204415290221ffebb530fd5949 (patch)
tree592ff8290fd46ae114afc1b2c1e20b46745bc66c /drivers
parent1be0e3ed76188c9dd879f421953f5cbf5d9cee58 (diff)
Staging: comedi: fix sparse issues in comedi_test.c
This fixes all issues pointed out by sparse with the comedi_test.c file. Cc: Joachim Wuttke <Joachim.Wuttke@icn.siemens.de> 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/comedi_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/drivers/comedi_test.c
index b8911374dcdd..01d177e70070 100644
--- a/drivers/staging/comedi/drivers/comedi_test.c
+++ b/drivers/staging/comedi/drivers/comedi_test.c
@@ -241,9 +241,9 @@ static int waveform_attach(comedi_device *dev, comedi_devconfig *it)
241 s->range_table = &waveform_ai_ranges; 241 s->range_table = &waveform_ai_ranges;
242 s->len_chanlist = s->n_chan * 2; 242 s->len_chanlist = s->n_chan * 2;
243 s->insn_write = waveform_ao_insn_write; 243 s->insn_write = waveform_ao_insn_write;
244 s->do_cmd = 0; 244 s->do_cmd = NULL;
245 s->do_cmdtest = 0; 245 s->do_cmdtest = NULL;
246 s->cancel = 0; 246 s->cancel = NULL;
247 247
248 /* Our default loopback value is just a 0V flatline */ 248 /* Our default loopback value is just a 0V flatline */
249 for (i = 0; i < s->n_chan; i++) 249 for (i = 0; i < s->n_chan; i++)