mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-03-23 03:38:05 +08:00
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: Fred Akers <knivey@botops.net> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
afdc37ee79
commit
56b1fcfdeb
@ -143,10 +143,6 @@ int comedi_check_chanlist(struct comedi_subdevice *s, int n,
|
||||
unsigned int chanspec;
|
||||
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++) {
|
||||
chanspec = chanlist[i];
|
||||
chan = CR_CHAN(chanspec);
|
||||
|
Loading…
x
Reference in New Issue
Block a user