Commit 82ed9774 authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

staging: dgap: Add curly braces back in for Multi-line indent block

Multi-line indent blocks get curly braces for readability.
Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eb14151
...@@ -2381,7 +2381,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file) ...@@ -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 * Determine if this is the last close or not - and if we agree about
* which type of close it is with the Line Discipline * 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 * Uh, oh. tty->count is 1, which means that the tty
* structure will be freed. un_open_count should always * 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) ...@@ -2390,6 +2390,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
* serial port won't be shutdown. * serial port won't be shutdown.
*/ */
un->un_open_count = 1; un->un_open_count = 1;
}
if (--un->un_open_count < 0) if (--un->un_open_count < 0)
un->un_open_count = 0; un->un_open_count = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment