projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1adcba0
)
pcl812: No need to check chanlist_len for AI command test.
author
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 11:57:34 +0000
(11:57 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 11:57:34 +0000
(11:57 +0000)
comedi/drivers/pcl812.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/pcl812.c
b/comedi/drivers/pcl812.c
index eac1021cdc06aa20f69508664d31baf336c5d966..bd0c2ff4879c593c57c84feabe4a862c948698a3 100644
(file)
--- a/
comedi/drivers/pcl812.c
+++ b/
comedi/drivers/pcl812.c
@@
-708,14
+708,6
@@
static int pcl812_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
}
}
- if (!cmd->chanlist_len) {
- cmd->chanlist_len = 1;
- err++;
- }
- if (cmd->chanlist_len > MAX_CHANLIST_LEN) {
- cmd->chanlist_len = this_board->n_aichan;
- err++;
- }
if (cmd->scan_end_arg != cmd->chanlist_len) {
cmd->scan_end_arg = cmd->chanlist_len;
err++;