summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/msm_serial.c
diff options
context:
space:
mode:
authorKiran Padwal <kiran.padwal@smartplayin.com>2014-08-05 13:21:59 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-08 15:28:28 -0700
commitddea392e614736ae1c38e3a4c3b1dc427412047d (patch)
treeb786cc7d550ec86cd1b80279b074d3202b77c514 /drivers/tty/serial/msm_serial.c
parent28e3fb6c4dce76d59a76755c4360d1cd5e0e226c (diff)
downloadop-kernel-dev-ddea392e614736ae1c38e3a4c3b1dc427412047d.zip
op-kernel-dev-ddea392e614736ae1c38e3a4c3b1dc427412047d.tar.gz
tty: serial: msm: remove braces {} in msm_serial.c
fixed below checkpatch.pl warning: WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/msm_serial.c')
-rw-r--r--drivers/tty/serial/msm_serial.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index 0da0b54..6c7300b 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -190,11 +190,10 @@ static void handle_rx(struct uart_port *port)
/* Mask conditions we're ignorning. */
sr &= port->read_status_mask;
- if (sr & UART_SR_RX_BREAK) {
+ if (sr & UART_SR_RX_BREAK)
flag = TTY_BREAK;
- } else if (sr & UART_SR_PAR_FRAME_ERR) {
+ else if (sr & UART_SR_PAR_FRAME_ERR)
flag = TTY_FRAME;
- }
if (!uart_handle_sysrq_char(port, c))
tty_insert_flip_char(tport, c, flag);
OpenPOWER on IntegriCloud