]> rtime.felk.cvut.cz Git - linux-imx.git/commit
staging: comedi: usbduxsigma: remove unnecessary check in usbdux_ai_cmd()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:53:46 +0000 (12:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:54 +0000 (20:40 +0900)
commit01a4303d392841cca293fc3895e3f4985c5365d6
tree13fcdf599b756fa174a05a87d1a180502122c7bf
parent8eea6dbd7359aaf517d35201e27642a9785a691b
staging: comedi: usbduxsigma: remove unnecessary check in usbdux_ai_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