Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8abca1f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: default avatarIan Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cd1a76fb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -136,8 +136,6 @@ static int das16cs_ai_rinsn(struct comedi_device *dev,
	case 3:
		devpriv->status2 |= 0x200;
		break;
	default:
		return -EINVAL;
	}
	outw(devpriv->status2, dev->iobase + DAS16CS_MISC2);