staging: comedi: cb_das16_cs: remove unneeded default case in analog in read
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 26 Jun 2012 17:08:52 +0000 (10:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:36:10 +0000 (15:36 -0700)
commite8abca1f30239f6c979f60df49305a602672cb94
treeb9075fd967b33a249ee24883ba211da8bc3dbd6b
parentcd1a76fb6fbd477689ca2d0fdf7db7171c35e5d8
staging: comedi: cb_das16_cs: remove unneeded default case in analog in read

The default (return -EINVAL) case is not needed when working
out the correct value to set the analog input range. As pointed
out by Ian Abbott, the comedi core checks the range in
comedi_check_chanlist() before calling the insn_read() function.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_das16_cs.c