serial/arc-uart: Remove the goto/label
Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Mischa Jonker <mjonker@synopsys.com> Cc: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5284eba7b3
commit
00a135b395
@@ -248,12 +248,9 @@ static void arc_serial_rx_chars(struct arc_uart_port *uart, unsigned int status)
|
|||||||
ch = UART_GET_DATA(uart);
|
ch = UART_GET_DATA(uart);
|
||||||
uart->port.icount.rx++;
|
uart->port.icount.rx++;
|
||||||
|
|
||||||
if (unlikely(uart_handle_sysrq_char(&uart->port, ch)))
|
if (!(uart_handle_sysrq_char(&uart->port, ch)))
|
||||||
goto done;
|
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);
|
tty_flip_buffer_push(&uart->port.state->port);
|
||||||
} while (!((status = UART_GET_STATUS(uart)) & RXEMPTY));
|
} while (!((status = UART_GET_STATUS(uart)) & RXEMPTY));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user