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>
This commit is contained in:
H Hartley Sweeten 2012-06-26 10:08:52 -07:00 committed by Greg Kroah-Hartman
parent cd1a76fb6f
commit e8abca1f30
1 changed files with 0 additions and 2 deletions

View File

@ -136,8 +136,6 @@ static int das16cs_ai_rinsn(struct comedi_device *dev,
case 3: case 3:
devpriv->status2 |= 0x200; devpriv->status2 |= 0x200;
break; break;
default:
return -EINVAL;
} }
outw(devpriv->status2, dev->iobase + DAS16CS_MISC2); outw(devpriv->status2, dev->iobase + DAS16CS_MISC2);