From: David Schleef Date: Thu, 5 Jul 2001 05:34:47 +0000 (+0000) Subject: Remove duplicate code X-Git-Tag: r0_7_60~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b15a1df96e885994aa33214ba293a1f47e7bcdfc;p=comedi.git Remove duplicate code --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index ef62a62e..cade1257 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -1935,17 +1935,8 @@ static int ni_E_init(comedi_device *dev,comedi_devconfig *it) }else{ s->type=COMEDI_SUBD_UNUSED; } - /* XXX */ /* general purpose counter/timer device */ - s=dev->subdevices+4; - s->type=COMEDI_SUBD_COUNTER; - s->subdev_flags=SDF_READABLE|SDF_WRITEABLE; - s->insn_read=ni_gpct_insn_read; - s->insn_config=ni_gpct_insn_config; - s->n_chan=1; /* XXX */ - s->maxdata=1; - s=dev->subdevices+4; s->type=COMEDI_SUBD_COUNTER; s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;