You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] Serial: Ensure error paths are marked with unlikely()
Ensure ARM serial driver error paths are marked with the unlikely() compiler hint. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
This commit is contained in:
@@ -162,7 +162,7 @@ lh7a40xuart_rx_chars (struct uart_port* port)
|
||||
flag = TTY_NORMAL;
|
||||
++port->icount.rx;
|
||||
|
||||
if (data & RxError) { /* Quick check, short-circuit */
|
||||
if (unlikely(data & RxError)) { /* Quick check, short-circuit */
|
||||
if (data & RxBreak) {
|
||||
data &= ~(RxFramingError | RxParityError);
|
||||
++port->icount.brk;
|
||||
|
||||
Reference in New Issue
Block a user