Commit 1ef5c960 authored by Nishad Kamdar's avatar Nishad Kamdar Committed by Greg Kroah-Hartman

staging: dgnc: dgnc_tty.c: Avoid '(' at the end of line

Bring the first argument to the previous line,
remove a superfluous () in the second argument
by using !, and align the lines to match open
parenthesis. Issue found by checkpatch.
Signed-off-by: default avatarNishad Kamdar <nishadkamdar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5b70084f
...@@ -883,10 +883,9 @@ static int dgnc_tty_open(struct tty_struct *tty, struct file *file) ...@@ -883,10 +883,9 @@ static int dgnc_tty_open(struct tty_struct *tty, struct file *file)
* touched safely, the close routine will signal the * touched safely, the close routine will signal the
* ch_flags_wait to wake us back up. * ch_flags_wait to wake us back up.
*/ */
rc = wait_event_interruptible( rc = wait_event_interruptible(ch->ch_flags_wait,
ch->ch_flags_wait, !((ch->ch_tun.un_flags |
(((ch->ch_tun.un_flags | ch->ch_pun.un_flags) & UN_CLOSING));
ch->ch_pun.un_flags) & UN_CLOSING) == 0));
/* If ret is non-zero, user ctrl-c'ed us */ /* If ret is non-zero, user ctrl-c'ed us */
if (rc) if (rc)
return -EINTR; return -EINTR;
......
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