Remove duplicate code
authorDavid Schleef <ds@schleef.org>
Thu, 5 Jul 2001 05:34:47 +0000 (05:34 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 5 Jul 2001 05:34:47 +0000 (05:34 +0000)
comedi/drivers/ni_mio_common.c

index ef62a62e00c8a9541c20b6388f91766e4394d9d4..cade125744a00afc8953d47888ec12a70bab0230 100644 (file)
@@ -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;