summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-04-19 22:17:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-18 16:34:56 +0200
commit5a2ce87bf27579ea359f0caba34f17fd6d0798d5 (patch)
treed82b665e9f8bd1f6bf8066e754a7615950e73b02 /drivers/tty
parentba50f1df13c8f1a7bbd301cacde4b668b4a3b1bb (diff)
downloadlinux-5a2ce87bf27579ea359f0caba34f17fd6d0798d5.tar.bz2
serial: meson: remove dead code in meson_uart_change_speed
val is set in both branches of the if clause, therefore the two removed lines are dead code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/meson_uart.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c
index 97e16db32468..e93a1e47ec6c 100644
--- a/drivers/tty/serial/meson_uart.c
+++ b/drivers/tty/serial/meson_uart.c
@@ -307,8 +307,6 @@ static void meson_uart_change_speed(struct uart_port *port, unsigned long baud)
while (!meson_uart_tx_empty(port))
cpu_relax();
- val = readl(port->membase + AML_UART_REG5);
- val &= ~AML_UART_BAUD_MASK;
if (port->uartclk == 24000000) {
val = ((port->uartclk / 3) / baud) - 1;
val |= AML_UART_BAUD_XTAL;