staging: comedi: ni_labpc: tidy up labpc_ai_scan_mode()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 17 Jul 2014 19:27:31 +0000 (12:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:00:43 +0000 (18:00 -0700)
commit2042088cd67d0064d18c52c13c69af2499907bb1
tree51e3488f99a3b4ed3480ea798f2e5890344633df
parentc72f57377c4168a1aed68b4250a109a2505bdd62
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c
This page took 0.025284 seconds and 5 git commands to generate.