staging: dgnc: dgnc_neo: Clean up if statement
authorMasaru Nomura <massa.nomura@gmail.com>
Sat, 17 May 2014 23:54:30 +0000 (00:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2014 17:11:24 +0000 (10:11 -0700)
Fix line over 80 characters and indenting of condition part.
Also, remove unnecessary braces to meet coding style.

Signed-off-by: Masaru Nomura <massa.nomura@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index e87cf49be175bdb23e95286d3f0b43a6bc6cef64..10b60167c7841566570a4bf142415368f73d66a4 100644 (file)
@@ -838,14 +838,14 @@ static void neo_param(struct tty_struct *tty)
         * Have the UART interrupt on modem signal changes ONLY when
         * we are in hardware flow control mode, or CLOCAL/FORCEDCD is not set.
         */
-       if ((ch->ch_digi.digi_flags & CTSPACE) || (ch->ch_digi.digi_flags & RTSPACE) ||
-               (ch->ch_c_cflag & CRTSCTS) || !(ch->ch_digi.digi_flags & DIGI_FORCEDCD) ||
-               !(ch->ch_c_cflag & CLOCAL))
-       {
+       if ((ch->ch_digi.digi_flags & CTSPACE) ||
+           (ch->ch_digi.digi_flags & RTSPACE) ||
+           (ch->ch_c_cflag & CRTSCTS) ||
+           !(ch->ch_digi.digi_flags & DIGI_FORCEDCD) ||
+           !(ch->ch_c_cflag & CLOCAL))
                ier |= UART_IER_MSI;
-       } else {
+       else
                ier &= ~UART_IER_MSI;
-       }
 
        ier |= UART_IER_THRI;