diff options
author | H Hartley Sweeten | 2014-07-17 21:27:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-07-18 03:00:43 +0200 |
commit | 2042088cd67d0064d18c52c13c69af2499907bb1 (patch) | |
tree | 51e3488f99a3b4ed3480ea798f2e5890344633df /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: cb_pcidas64: remove unused pr_fmt() macro (diff) | |
download | kernel-qcow2-linux-2042088cd67d0064d18c52c13c69af2499907bb1.tar.gz kernel-qcow2-linux-2042088cd67d0064d18c52c13c69af2499907bb1.tar.xz kernel-qcow2-linux-2042088cd67d0064d18c52c13c69af2499907bb1.zip |
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>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions