From 5a2ce87bf27579ea359f0caba34f17fd6d0798d5 Mon Sep 17 00:00:00 2001 From: Heiner Kallweit Date: Wed, 19 Apr 2017 22:17:31 +0200 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/meson_uart.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers') 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; -- cgit v1.2.3