summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorKiran Padwal <kiran.padwal@smartplayin.com>2014-08-05 07:52:02 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-08 22:28:28 (GMT)
commit6f47abcb86cd9e061013a12a3aa4748b1949b25e (patch)
tree0bc277ab132d870e8fd2d32be00a43be1bde06b3 /drivers/tty/serial
parent6a7cfe4611c5cab191da5b3934790b763c58906a (diff)
downloadlinux-6f47abcb86cd9e061013a12a3aa4748b1949b25e.tar.xz
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 <kiran.padwal@smartplayin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/msm_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index e70d4e8..dfebbaf 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)