commit | 58cd9b91f809196adb39b52d1c18069ca73c8103 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Fri Mar 22 09:56:48 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Mar 25 11:43:02 2013 -0700 |
tree | e49cd5787fd7941920411f013cd968cd4419cf7f | |
parent | 83d75effa74dc26f5c989f7a4385c345dff1e58f [diff] |
staging: comedi: ni_labpc: cleanup trigger setting in labpc_ai_cmd() The (*do_cmdtest) already validated the cmd sources so the default cases in the switch() statements can never happen. Preclear to trigger bits and change the switch() statements to simple if() tests to set the bits. 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>