removed some unnecessary lines from command tests
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jul 2001 23:57:36 +0000 (23:57 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jul 2001 23:57:36 +0000 (23:57 +0000)
comedi/drivers/das1800.c
comedi/drivers/das800.c

index 99313bd243e4078d8e2b8cc54a151c637e3ac171..0e0d11f249798a084a5873202fb798692d60ccb2 100644 (file)
@@ -1129,7 +1129,6 @@ static int das1800_ai_do_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_c
                cmd->scan_begin_src != TRIG_EXT) err++;
        if(cmd->convert_src != TRIG_TIMER &&
                cmd->convert_src != TRIG_EXT) err++;
-       if(cmd->scan_end_src != TRIG_COUNT) err++;
        if(cmd->stop_src != TRIG_COUNT &&
                cmd->stop_src != TRIG_NONE &&
                cmd->stop_src != TRIG_EXT) err++;
@@ -1159,11 +1158,6 @@ static int das1800_ai_do_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_c
                cmd->chanlist_len = 1;
                err++;
        }
-       if(cmd->chanlist_len > s->len_chanlist)
-       {
-               cmd->chanlist_len = s->len_chanlist;
-               err++;
-       }
        if(cmd->scan_end_arg != cmd->chanlist_len)
        {
                cmd->scan_end_arg = cmd->chanlist_len;
index 80d009ebefc2b550071f5a8d51692c7063e1f900..838485f255422785dc8cafdccb495af2c527aeb5 100644 (file)
@@ -645,10 +645,8 @@ static int das800_ai_do_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cm
 
        if(cmd->start_src != TRIG_NOW &&
                cmd->start_src != TRIG_EXT) err++;
-       if(cmd->scan_begin_src != TRIG_FOLLOW) err++;
        if(cmd->convert_src != TRIG_TIMER &&
           cmd->convert_src != TRIG_EXT) err++;
-       if(cmd->scan_end_src != TRIG_COUNT) err++;
        if(cmd->stop_src != TRIG_COUNT &&
                cmd->stop_src != TRIG_NONE) err++;
 
@@ -674,11 +672,6 @@ static int das800_ai_do_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cm
                cmd->chanlist_len = 1;
                err++;
        }
-       if(cmd->chanlist_len > s->len_chanlist)
-       {
-               cmd->chanlist_len = s->len_chanlist;
-               err++;
-       }
        if(cmd->scan_end_arg != cmd->chanlist_len)
        {
                cmd->scan_end_arg = cmd->chanlist_len;