From: H Hartley Sweeten Date: Fri, 22 Mar 2013 16:56:48 +0000 (-0700) Subject: staging: comedi: ni_labpc: cleanup trigger setting in labpc_ai_cmd() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~441 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58cd9b91f809196adb39b52d1c18069ca73c8103;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed