staging: comedi: adl_pci9111: remove 'single' channel list check
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 01:58:46 +0000 (18:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:05:55 +0000 (20:05 -0700)
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>
drivers/staging/comedi/drivers/adl_pci9111.c

index ba8d7945ab2516091d623ddcd9ae121980ee05db..98b4f5da7fea509734e9cec2f0901d81cc504779 100644 (file)
@@ -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++;
-                       }
                }
        }