Skip to content

Commit

Permalink
staging: comedi: adl_pci9111: remove 'single' channel list check
Browse files Browse the repository at this point in the history
The comedi core verifies that the chanlist elements are inrange for
the subdevice. Remove the redundant check in thie driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent e6e69aa commit f212a37
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,6 @@ pci9111_ai_do_cmd_test(struct comedi_device *dev,
error++;
}
}
} else {
if ((CR_CHAN(cmd->chanlist[0]) >
(board->ai_channel_nbr - 1))
|| (CR_CHAN(cmd->chanlist[0]) < 0)) {
comedi_error(dev,
"channel number is out of limits\n");
error++;
}
}
}

Expand Down

0 comments on commit f212a37

Please sign in to comment.