Skip to content

Commit

Permalink
Staging: comedi: dmm32at.c: Checkpatch cleanup
Browse files Browse the repository at this point in the history
WARNING: braces {} are not necessary for any arm of this statement
+	if (data[0] == COMEDI_OUTPUT) {
[...]
+	} else {
[...]

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andrea Gelmini authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 882e5b3 commit 20962c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers/dmm32at.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,10 @@ static int dmm32at_dio_insn_config(struct comedi_device *dev,
* value COMEDI_INPUT or COMEDI_OUTPUT. */

/* if output clear the bit, otherwise set it */
if (data[0] == COMEDI_OUTPUT) {
if (data[0] == COMEDI_OUTPUT)
devpriv->dio_config &= ~chanbit;
} else {
else
devpriv->dio_config |= chanbit;
}
/* get access to the DIO regs */
dmm_outb(dev, DMM32AT_CNTRL, DMM32AT_DIOACC);
/* set the DIO's to the new configuration setting */
Expand Down

0 comments on commit 20962c1

Please sign in to comment.