From: H Hartley Sweeten Date: Mon, 5 May 2014 16:35:38 +0000 (-0700) Subject: staging: comedi: adl_pci9118: cmd->stop_src == TRIG_INT is not supported X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=681a89b3e0c0b966eeda481503c658e051604d17;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: adl_pci9118: cmd->stop_src == TRIG_INT is not supported 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c index 60cc41a7a43a..89e6b9277250 100644 --- a/drivers/staging/comedi/drivers/adl_pci9118.c +++ b/drivers/staging/comedi/drivers/adl_pci9118.c @@ -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)