Staging: comedi: ssc_dnp: fixed a brace coding style issue

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:02 pm

Gitweb:     http://git.kernel.org/linus/dee86e8c9279110d787da64cbca5d4bda63d93c6
Commit:     dee86e8c9279110d787da64cbca5d4bda63d93c6
Parent:     2d2facda0b71609be294aa1fd5f56d2cdbcbb794
Author:     Greg Kroah-Hartman <gregkh@suse.de>
AuthorDate: Sun Feb 7 08:51:51 2010 -0800
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Wed Mar 3 16:42:56 2010 -0800

    Staging: comedi: ssc_dnp: fixed a brace coding style issue
    
    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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ssv_dnp.c b/drivers/staging/comedi/drivers/ssv_dnp.c
index 4918fbf..17c92a5 100644
--- 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Staging: comedi: ssc_dnp: fixed a brace coding style issue, Linux Kernel Mailing ..., (Sun Mar 7, 6:02 pm)