projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b935b51
)
pcl816: No need to check chanlist_len for AI command test.
author
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:17:37 +0000
(12:17 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 12:17:37 +0000
(12:17 +0000)
comedi/drivers/pcl816.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/pcl816.c
b/comedi/drivers/pcl816.c
index 4bb3c45b524f80e707c0d66bf4928801950c4a05..4046cce5a4d15632b6d0fe40bd700b9b80020aa8 100644
(file)
--- a/
comedi/drivers/pcl816.c
+++ b/
comedi/drivers/pcl816.c
@@
-558,14
+558,6
@@
static int pcl816_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++;