diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-06-26 13:08:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-26 18:36:10 -0400 |
commit | e8abca1f30239f6c979f60df49305a602672cb94 (patch) | |
tree | b9075fd967b33a249ee24883ba211da8bc3dbd6b | |
parent | cd1a76fb6fbd477689ca2d0fdf7db7171c35e5d8 (diff) |
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>
-rw-r--r-- | drivers/staging/comedi/drivers/cb_das16_cs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/cb_das16_cs.c b/drivers/staging/comedi/drivers/cb_das16_cs.c index 95fa7e2fea9d..58d45299bf85 100644 --- a/drivers/staging/comedi/drivers/cb_das16_cs.c +++ b/drivers/staging/comedi/drivers/cb_das16_cs.c | |||
@@ -136,8 +136,6 @@ static int das16cs_ai_rinsn(struct comedi_device *dev, | |||
136 | case 3: | 136 | case 3: |
137 | devpriv->status2 |= 0x200; | 137 | devpriv->status2 |= 0x200; |
138 | break; | 138 | break; |
139 | default: | ||
140 | return -EINVAL; | ||
141 | } | 139 | } |
142 | outw(devpriv->status2, dev->iobase + DAS16CS_MISC2); | 140 | outw(devpriv->status2, dev->iobase + DAS16CS_MISC2); |
143 | 141 | ||