[PATCH 03/04] staging: dgap: Add curly braces back in for Multi-line indent block

Mark Hounschell markh at compro.net
Mon Mar 3 21:36:24 UTC 2014


Multi-line indent blocks get curly braces for readability.

Signed-off-by: Mark Hounschell <markh at compro.net>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 drivers/staging/dgap/dgap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 08ef106..869a9f6 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -2381,7 +2381,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 	 * Determine if this is the last close or not - and if we agree about
 	 * which type of close it is with the Line Discipline
 	 */
-	if ((tty->count == 1) && (un->un_open_count != 1))
+	if ((tty->count == 1) && (un->un_open_count != 1)) {
 		/*
 		 * Uh, oh.  tty->count is 1, which means that the tty
 		 * structure will be freed.  un_open_count should always
@@ -2390,6 +2390,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 		 * serial port won't be shutdown.
 		 */
 		un->un_open_count = 1;
+	}
 
 	if (--un->un_open_count < 0)
 		un->un_open_count = 0;
-- 
1.8.1.4



More information about the devel mailing list