forked from Minki/linux
staging: comedi: ni_tiocmd: remove unused code
Code after a return will never run, removing this dead code. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1282bade3b
commit
02ab79c80b
@ -157,12 +157,6 @@ static int ni_tio_output_cmd(struct comedi_subdevice *s)
|
|||||||
dev_err(counter->counter_dev->dev->class_dev,
|
dev_err(counter->counter_dev->dev->class_dev,
|
||||||
"output commands not yet implemented.\n");
|
"output commands not yet implemented.\n");
|
||||||
return -ENOTSUPP;
|
return -ENOTSUPP;
|
||||||
|
|
||||||
counter->mite_chan->dir = COMEDI_OUTPUT;
|
|
||||||
mite_prep_dma(counter->mite_chan, 32, 32);
|
|
||||||
ni_tio_configure_dma(counter, true, false);
|
|
||||||
mite_dma_arm(counter->mite_chan);
|
|
||||||
return ni_tio_arm(counter, 1, NI_GPCT_ARM_IMMEDIATE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ni_tio_cmd_setup(struct comedi_subdevice *s)
|
static int ni_tio_cmd_setup(struct comedi_subdevice *s)
|
||||||
|
Loading…
Reference in New Issue
Block a user