From: H Hartley Sweeten Date: Tue, 26 Jun 2012 17:08:52 +0000 (-0700) Subject: staging: comedi: cb_das16_cs: remove unneeded default case in analog in read X-Git-Tag: v3.6-rc1~100^2~513 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8abca1f30239f6c979f60df49305a602672cb94;p=pandora-kernel.git 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 Reported-by: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed