提交 00a135b3 编写于 作者: V Vineet Gupta 提交者: Greg Kroah-Hartman

serial/arc-uart: Remove the goto/label

Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5284eba7
......@@ -248,12 +248,9 @@ static void arc_serial_rx_chars(struct arc_uart_port *uart, unsigned int status)
ch = UART_GET_DATA(uart);
uart->port.icount.rx++;
if (unlikely(uart_handle_sysrq_char(&uart->port, ch)))
goto done;
if (!(uart_handle_sysrq_char(&uart->port, ch)))
uart_insert_char(&uart->port, status, RXOERR, ch, flg);
uart_insert_char(&uart->port, status, RXOERR, ch, flg);
done:
tty_flip_buffer_push(&uart->port.state->port);
} while (!((status = UART_GET_STATUS(uart)) & RXEMPTY));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册