staging: comedi: adl_pci9118: cmd->stop_src == TRIG_INT is not supported
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 5 May 2014 16:35:38 +0000 (09:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:18:54 +0000 (21:18 +0900)
The (*do_cmdtest) only allows TRIG_COUNT, TRIG_NONE, or TRIG_EXT as the
cmd->stop_src. Remove the disabled code.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c

index 60cc41a7a43ad896db9df0fa8632ac2f55cf4962..89e6b92772502ccf2adca981072b0a848593460d 100644 (file)
@@ -1626,12 +1626,6 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
                devpriv->ai12_startstop |= START_AI_INT;
                s->async->inttrig = pci9118_ai_inttrig;
        }
-#if 0
-       if (cmd->stop_src == TRIG_INT) {
-               devpriv->ai_neverending = 1;
-               devpriv->ai12_startstop |= STOP_AI_INT;
-       }
-#endif
        if (cmd->stop_src == TRIG_NONE)
                devpriv->ai_neverending = 1;
        if (cmd->stop_src == TRIG_COUNT)