projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d955f6f
)
pcl818: No need to check chanlist_len for AI command test.
author
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:33:02 +0000
(12:33 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:33:02 +0000
(12:33 +0000)
comedi/drivers/pcl818.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/pcl818.c
b/comedi/drivers/pcl818.c
index 1f62cd51aa7bf601a17ec10a8faa6de07ff5950b..fe0166cc9255f8e9bdb5724b896f781e5ed9e066 100644
(file)
--- 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++;