From: Kiran Padwal Date: Tue, 5 Aug 2014 07:52:02 +0000 (+0530) Subject: tty: serial: msm: Fix 'else is not generally useful after a break or return' warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f47abcb86cd9e061013a12a3aa4748b1949b25e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git tty: serial: msm: Fix 'else is not generally useful after a break or return' warning fixed below checkpatch.pl warning: WARNING: else is not generally useful after a break or return Signed-off-by: Kiran Padwal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index e70d4e80d4a8..dfebbafbf84e 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -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)