]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Staging: comedi: fixed brace coding style issue in ni_tio.c
authorSamuel Richardson <sam.j.richardson@gmail.com>
Mon, 17 May 2010 18:08:18 +0000 (19:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Jun 2010 18:41:36 +0000 (11:41 -0700)
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>
drivers/staging/comedi/drivers/ni_tio.c

index 13e5b264ff0d6196a9a2d6a982c8999fcaedaeb8..6621e940c3083db8b67c1f3b1b431d79d6b1c3f3 100644 (file)
@@ -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,