staging: comedi: ni_tio: checkpatch.pl cleanup (braces not necessary)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 18:22:57 +0000 (11:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:38:00 +0000 (13:38 -0700)
Fix the checkpatch.pl warnings:

WARNING: braces {} are not necessary for single statement blocks

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_tio.c

index 0ac9fbf170f5b68b8752797fc2c36f4cc6d3259f..694bd5142cc5a52f57bb7d5552c19c7559f456eb 100644 (file)
@@ -1271,17 +1271,15 @@ static unsigned ni_660x_first_gate_to_generic_gate_source(unsigned
                return NI_GPCT_LOGIC_LOW_GATE_SELECT;
        default:
                for (i = 0; i <= ni_660x_max_rtsi_channel; ++i) {
-                       if (ni_660x_gate_select == NI_660x_RTSI_Gate_Select(i)) {
+                       if (ni_660x_gate_select == NI_660x_RTSI_Gate_Select(i))
                                return NI_GPCT_RTSI_GATE_SELECT(i);
-                       }
                }
                if (i <= ni_660x_max_rtsi_channel)
                        break;
                for (i = 0; i <= ni_660x_max_gate_pin; ++i) {
                        if (ni_660x_gate_select ==
-                           NI_660x_Gate_Pin_Gate_Select(i)) {
+                           NI_660x_Gate_Pin_Gate_Select(i))
                                return NI_GPCT_GATE_PIN_GATE_SELECT(i);
-                       }
                }
                if (i <= ni_660x_max_gate_pin)
                        break;