Commit 33cfbaf5 authored by Masaru Nomura's avatar Masaru Nomura Committed by Greg Kroah-Hartman

staging: dgnc: dgnc_neo: Clean up if statement

Fix line over 80 characters and indenting of condition part.
Also, remove unnecessary braces to meet coding style.
Signed-off-by: default avatarMasaru Nomura <massa.nomura@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2000c581
...@@ -838,14 +838,14 @@ static void neo_param(struct tty_struct *tty) ...@@ -838,14 +838,14 @@ static void neo_param(struct tty_struct *tty)
* Have the UART interrupt on modem signal changes ONLY when * Have the UART interrupt on modem signal changes ONLY when
* we are in hardware flow control mode, or CLOCAL/FORCEDCD is not set. * 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) || if ((ch->ch_digi.digi_flags & CTSPACE) ||
(ch->ch_c_cflag & CRTSCTS) || !(ch->ch_digi.digi_flags & DIGI_FORCEDCD) || (ch->ch_digi.digi_flags & RTSPACE) ||
(ch->ch_c_cflag & CRTSCTS) ||
!(ch->ch_digi.digi_flags & DIGI_FORCEDCD) ||
!(ch->ch_c_cflag & CLOCAL)) !(ch->ch_c_cflag & CLOCAL))
{
ier |= UART_IER_MSI; ier |= UART_IER_MSI;
} else { else
ier &= ~UART_IER_MSI; ier &= ~UART_IER_MSI;
}
ier |= UART_IER_THRI; ier |= UART_IER_THRI;
......
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