pcl818: No need to check chanlist_len for AI command test.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:33:02 +0000 (12:33 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:33:02 +0000 (12:33 +0000)
comedi/drivers/pcl818.c

index 1f62cd51aa7bf601a17ec10a8faa6de07ff5950b..fe0166cc9255f8e9bdb5724b896f781e5ed9e066 100644 (file)
@@ -1363,14 +1363,6 @@ static int ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
                }
        }
 
-       if (!cmd->chanlist_len) {
-               cmd->chanlist_len = 1;
-               err++;
-       }
-       if (cmd->chanlist_len > s->n_chan) {
-               cmd->chanlist_len = s->n_chan;
-               err++;
-       }
        if (cmd->scan_end_arg != cmd->chanlist_len) {
                cmd->scan_end_arg = cmd->chanlist_len;
                err++;