projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b69c75
)
adv_pci1710: Don't need to check chanlist_len in pci171x_ai_cmdtest().
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 18 Jan 2010 19:38:39 +0000
(19:38 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Mon, 18 Jan 2010 19:38:39 +0000
(19:38 +0000)
comedi/drivers/adv_pci1710.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/adv_pci1710.c
b/comedi/drivers/adv_pci1710.c
index 6139e2683883f806a8ca5b06f36d712cca46d225..ac0282bf43ac351acb9beaf12b767b665dc94512 100644
(file)
--- 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++;