]> Pileus Git - ~andy/linux/commit
staging: comedi: usbduxsigma: remove unnecessary check in usbdux_ao_cmd()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:54:06 +0000 (12:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:55 +0000 (20:40 +0900)
commit982d255b3e5d5945b91a84b019841736bcee96dc
tree8d76146d7a9304e1a577e889fd9adf47622e0d95
parent01a4303d392841cca293fc3895e3f4985c5365d6
staging: comedi: usbduxsigma: remove unnecessary check in usbdux_ao_cmd()

The comedi core verifies that the command chanlist_len is valid for
the subdevice based on the len_chanlist that was setup during the
attach. There is no need to recheck it in the (*cmd) function.

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/usbduxsigma.c