Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a2ce87b authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Greg Kroah-Hartman
Browse files

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba50f1df
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;