Skip to content

Commit

Permalink
Staging: comedi: ssc_dnp: fixed a brace coding style issue
Browse files Browse the repository at this point in the history
Fixed a coding style issue.

Created during the keynote presentation at FOSDEM 2010

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Mar 4, 2010
1 parent 2d2facd commit dee86e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/comedi/drivers/ssv_dnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ static int dnp_dio_insn_config(struct comedi_device *dev,

/* read 'old' direction of the port and set bits (out=1, in=0) */
register_buffer = inb(CSCDR);
if (data[0] == COMEDI_OUTPUT) {
if (data[0] == COMEDI_OUTPUT)
register_buffer |= (1 << chan);
} else {
else
register_buffer &= ~(1 << chan);
}

outb(register_buffer, CSCDR);

return 1;
Expand Down

0 comments on commit dee86e8

Please sign in to comment.