From: H Hartley Sweeten Date: Wed, 16 Jul 2014 18:22:57 +0000 (-0700) Subject: staging: comedi: ni_tio: checkpatch.pl cleanup (braces not necessary) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b28a540dec5cb39499f79b93787c1655cc650e4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: ni_tio: checkpatch.pl cleanup (braces not necessary) Fix the checkpatch.pl warnings: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_tio.c b/drivers/staging/comedi/drivers/ni_tio.c index 0ac9fbf170f5..694bd5142cc5 100644 --- a/drivers/staging/comedi/drivers/ni_tio.c +++ b/drivers/staging/comedi/drivers/ni_tio.c @@ -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;