adv_pci1710: Don't need to check chanlist_len in pci171x_ai_cmdtest().
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jan 2010 19:38:39 +0000 (19:38 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jan 2010 19:38:39 +0000 (19:38 +0000)
comedi/drivers/adv_pci1710.c

index 6139e2683883f806a8ca5b06f36d712cca46d225..ac0282bf43ac351acb9beaf12b767b665dc94512 100644 (file)
@@ -1001,14 +1001,6 @@ static int pci171x_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
                }
        }
 
-       if (!cmd->chanlist_len) {
-               cmd->chanlist_len = 1;
-               err++;
-       }
-       if (cmd->chanlist_len > this_board->n_aichan) {
-               cmd->chanlist_len = this_board->n_aichan;
-               err++;
-       }
        if (cmd->scan_end_arg != cmd->chanlist_len) {
                cmd->scan_end_arg = cmd->chanlist_len;
                err++;