tty: serial: msm: remove braces {} in msm_serial.c
authorKiran Padwal <kiran.padwal@smartplayin.com>
Tue, 5 Aug 2014 07:51:59 +0000 (13:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:28:28 +0000 (15:28 -0700)
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>
drivers/tty/serial/msm_serial.c

index 0da0b5474e985fc1680f4ceb64f57181efba7d6f..6c7300b9001801110b779da1c1f385b0d283dcf4 100644 (file)
@@ -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);