]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: serial: msm: Fix 'else is not generally useful after a break or return' warning
authorKiran Padwal <kiran.padwal@smartplayin.com>
Tue, 5 Aug 2014 07:52:02 +0000 (13:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:28:28 +0000 (15:28 -0700)
fixed below checkpatch.pl warning:

WARNING: else is not generally useful after a break or return

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 e70d4e80d4a88fcb73d36c749484fb013120ba32..dfebbafbf84e7d5ce0883ab41e033710766e3be8 100644 (file)
@@ -700,8 +700,8 @@ static int msm_poll_get_char_single(struct uart_port *port)
 
        if (!(msm_read(port, UART_SR) & UART_SR_RX_READY))
                return NO_POLL_CHAR;
-       else
-               return msm_read(port, rf_reg) & 0xff;
+
+       return msm_read(port, rf_reg) & 0xff;
 }
 
 static int msm_poll_get_char_dm_1p3(struct uart_port *port)