staging: dgnc: dgnc_tty.c: Avoid '(' at the end of line
authorNishad Kamdar <nishadkamdar@gmail.com>
Sun, 22 Jul 2018 18:48:01 +0000 (00:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 12:00:54 +0000 (14:00 +0200)
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: Nishad Kamdar <nishadkamdar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index 9f9b9a5b4b27b4b63e75d32544c7dcb6bf23ab48..f91eaa1c3b67d6b48937a47e0a935ba713d2b0ef 100644 (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
         * ch_flags_wait to wake us back up.
         */
-       rc = wait_event_interruptible(
-                               ch->ch_flags_wait,
-                               (((ch->ch_tun.un_flags |
-                               ch->ch_pun.un_flags) & UN_CLOSING) == 0));
+       rc = wait_event_interruptible(ch->ch_flags_wait,
+                                     !((ch->ch_tun.un_flags |
+                                     ch->ch_pun.un_flags) & UN_CLOSING));
        /* If ret is non-zero, user ctrl-c'ed us */
        if (rc)
                return -EINTR;