From: H Hartley Sweeten Date: Fri, 20 Feb 2015 19:52:26 +0000 (-0700) Subject: staging: comedi: ni_labpc_common: fix logically dead code issue X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~754 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f456c8034ad993eb6908b8a53216bca7afe9f1f;p=pandora-kernel.git staging: comedi: ni_labpc_common: fix logically dead code issue The quick exit check of (mode == MODE_SINGLE_CHAN) results in coverity reporting a logically dead code issue in the switch code in labpc_ai_check_chanlist(). Remove the quick exit check and allow the function to handle the MODE_SINGLE_CHAN normally (the for loop will only happen 1 time and the function will return 0). Reported-by: coverity (CID 1222108) Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed