From: Ian Abbott Date: Mon, 18 Jan 2010 19:38:39 +0000 (+0000) Subject: adv_pci1710: Don't need to check chanlist_len in pci171x_ai_cmdtest(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04d149c33905138e2800fc98534299852ee11f0e;p=comedi.git adv_pci1710: Don't need to check chanlist_len in pci171x_ai_cmdtest(). --- diff --git a/comedi/drivers/adv_pci1710.c b/comedi/drivers/adv_pci1710.c index 6139e268..ac0282bf 100644 --- a/comedi/drivers/adv_pci1710.c +++ b/comedi/drivers/adv_pci1710.c @@ -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++;