projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2facd
)
Staging: comedi: ssc_dnp: fixed a brace coding style issue
author
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 7 Feb 2010 16:51:51 +0000
(08:51 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 4 Mar 2010 00:42:56 +0000
(16:42 -0800)
Fixed a coding style issue.
Created during the keynote presentation at FOSDEM 2010
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/ssv_dnp.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers/ssv_dnp.c
b/drivers/staging/comedi/drivers/ssv_dnp.c
index 4918fbfab5e8ca22ab5aede06e8fbd82753cb046..17c92a57b0ddf6286f5e8d8094c27eebedd841ee 100644
(file)
--- a/
drivers/staging/comedi/drivers/ssv_dnp.c
+++ b/
drivers/staging/comedi/drivers/ssv_dnp.c
@@
-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;