Staging: comedi: fix sparse issues in comedi_test.c
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Nov 2008 18:22:51 +0000 (10:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:25 +0000 (13:52 -0800)
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>
drivers/staging/comedi/drivers/comedi_test.c

index b8911374dcddcd45426d5a63dcad33c0162422f8..01d177e700703870c7dc8f6fa183f3c5420ea915 100644 (file)
@@ -241,9 +241,9 @@ static int waveform_attach(comedi_device *dev, comedi_devconfig *it)
        s->range_table = &waveform_ai_ranges;
        s->len_chanlist = s->n_chan * 2;
        s->insn_write = waveform_ao_insn_write;
-       s->do_cmd = 0;
-       s->do_cmdtest = 0;
-       s->cancel = 0;
+       s->do_cmd = NULL;
+       s->do_cmdtest = NULL;
+       s->cancel = NULL;
 
        /* Our default loopback value is just a 0V flatline */
        for (i = 0; i < s->n_chan; i++)