summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Richardson <sam.j.richardson@gmail.com>2010-05-17 18:08:18 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-17 18:41:36 (GMT)
commit091b4242ebb789e826cbde573a0fee9f60fe998b (patch)
tree482d432760059721f5d3733d42a79328be11298d
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff)
downloadlinux-091b4242ebb789e826cbde573a0fee9f60fe998b.tar.xz
Staging: comedi: fixed brace coding style issue in ni_tio.c
This is a patch to the ni_tio.c file that fixes a brace warning found by the checkpatch.pl tool Signed-off-by: Samuel Richardson <sam.j.richardson@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/ni_tio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/ni_tio.c b/drivers/staging/comedi/drivers/ni_tio.c
index 13e5b26..6621e94 100644
--- a/drivers/staging/comedi/drivers/ni_tio.c
+++ b/drivers/staging/comedi/drivers/ni_tio.c
@@ -1688,11 +1688,10 @@ static unsigned ni_tio_next_load_register(struct ni_gpct *counter)
NITIO_Gxx_Status_Reg(counter->
counter_index));
- if (bits & Gi_Next_Load_Source_Bit(counter->counter_index)) {
+ if (bits & Gi_Next_Load_Source_Bit(counter->counter_index))
return NITIO_Gi_LoadB_Reg(counter->counter_index);
- } else {
+ else
return NITIO_Gi_LoadA_Reg(counter->counter_index);
- }
}
int ni_tio_winsn(struct ni_gpct *counter, struct comedi_insn *insn,