Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vineet Gupta and committed by
Greg Kroah-Hartman
00a135b3 5284eba7

+2 -5
+2 -5
drivers/tty/serial/arc_uart.c
··· 248 248 ch = UART_GET_DATA(uart); 249 249 uart->port.icount.rx++; 250 250 251 - if (unlikely(uart_handle_sysrq_char(&uart->port, ch))) 252 - goto done; 251 + if (!(uart_handle_sysrq_char(&uart->port, ch))) 252 + uart_insert_char(&uart->port, status, RXOERR, ch, flg); 253 253 254 - uart_insert_char(&uart->port, status, RXOERR, ch, flg); 255 - 256 - done: 257 254 tty_flip_buffer_push(&uart->port.state->port); 258 255 } while (!((status = UART_GET_STATUS(uart)) & RXEMPTY)); 259 256 }