]> git.baikalelectronics.ru Git - kernel.git/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)
commita43674e0b6857741569f5df8fa8b05762e5df9a9
tree8d76146d7a9304e1a577e889fd9adf47622e0d95
parent2a468d84efbd82305f2bf363043511648583df70
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