projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a1f7b
)
Staging: comedi: pcl818: Remove unneeded chanlist_len check
author
Ian Abbott
<abbotti@mev.co.uk>
Wed, 20 Jan 2010 13:04:51 +0000
(13:04 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 4 Mar 2010 00:42:48 +0000
(16:42 -0800)
For AI command testing, the driver does not need to range-check the
length of the channel list as the comedi core has already checked it.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcl818.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/comedi/drivers/pcl818.c
b/drivers/staging/comedi/drivers/pcl818.c
index 40ac293ad89d55d9893c5ade5528b11b73bef744..c9d75385755d471f703a6677e3f7ea6e8ebcdf00 100644
(file)
--- a/
drivers/staging/comedi/drivers/pcl818.c
+++ b/
drivers/staging/comedi/drivers/pcl818.c
@@
-1392,14
+1392,6
@@
static int ai_cmdtest(struct comedi_device *dev, struct 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++;