From: Ian Abbott Date: Wed, 20 Jan 2010 12:33:02 +0000 (+0000) Subject: pcl818: No need to check chanlist_len for AI command test. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3f437c7523530323cda7ec85e097e7d359eb5ff;p=comedi.git pcl818: No need to check chanlist_len for AI command test. --- diff --git a/comedi/drivers/pcl818.c b/comedi/drivers/pcl818.c index 1f62cd51..fe0166cc 100644 --- a/comedi/drivers/pcl818.c +++ b/comedi/drivers/pcl818.c @@ -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++;