From: H Hartley Sweeten Date: Thu, 17 Jul 2014 19:27:31 +0000 (-0700) Subject: staging: comedi: ni_labpc: tidy up labpc_ai_scan_mode() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~544 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2042088cd67d0064d18c52c13c69af2499907bb1;p=pandora-kernel.git staging: comedi: ni_labpc: tidy up labpc_ai_scan_mode() This function checks the cmd->chanlist to determine the scan mode used to sample the analog inputs. All possible modes are checked so the final pr_err() and return 0 can never be reached. Tidy up the function a bit and remove the unreachable code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed