Commit 56b1fcfd authored by Fred Akers's avatar Fred Akers Committed by Greg Kroah-Hartman

Staging: comedi: range: remove unnecessary sanity check

This check is unnecessary because range_table will always be
initialized to range_unknown by comedi_device_postconfig() for
drivers that do not initialize range_table or range_table_list
Signed-off-by: default avatarFred Akers <knivey@botops.net>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent afdc37ee
...@@ -143,10 +143,6 @@ int comedi_check_chanlist(struct comedi_subdevice *s, int n, ...@@ -143,10 +143,6 @@ int comedi_check_chanlist(struct comedi_subdevice *s, int n,
unsigned int chanspec; unsigned int chanspec;
int chan, range_len, i; int chan, range_len, i;
if (!s->range_table && !s->range_table_list) {
dev_err(dev->class_dev, "(bug) no range type list!\n");
return -EINVAL;
}
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
chanspec = chanlist[i]; chanspec = chanlist[i];
chan = CR_CHAN(chanspec); chan = CR_CHAN(chanspec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment