summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorMark Hounschell <markh@compro.net>2014-03-03 16:36:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-06 14:12:47 -0800
commit82ed97747dba7e38b0eeb5b34d011ca673087bfb (patch)
tree26c68d8996917383d8844861ef393e852cbf593a /drivers/staging/dgap
parent3eb141511bd5dec5d57803eec40eee3049386397 (diff)
downloadlinux-stable-82ed97747dba7e38b0eeb5b34d011ca673087bfb.tar.gz
linux-stable-82ed97747dba7e38b0eeb5b34d011ca673087bfb.tar.bz2
linux-stable-82ed97747dba7e38b0eeb5b34d011ca673087bfb.zip
staging: dgap: Add curly braces back in for Multi-line indent block
Multi-line indent blocks get curly braces for readability. Signed-off-by: Mark Hounschell <markh@compro.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r--drivers/staging/dgap/dgap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 7f8b497aa8d0..12d17cad3b9a 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;