From: Greg Kroah-Hartman Date: Wed, 19 Nov 2008 18:22:51 +0000 (-0800) Subject: Staging: comedi: fix sparse issues in comedi_test.c X-Git-Tag: v2.6.29-rc1~228^2~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e0639d7644d8bd204415290221ffebb530fd5949;p=linux-2.6-omap-h63xx.git 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 Cc: David Schleef Cc: Frank Mori Hess Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/drivers/comedi_test.c index b8911374dcd..01d177e7007 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) 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++)