diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-08-16 12:55:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-22 14:58:16 +0200 |
commit | ebee41c8490aeb3ef2e7d25f5e97ce45c996da4d (patch) | |
tree | 18728900e1ad44334b57aa7d0e087b2b981da5c4 /net/lapb/lapb_timer.c | |
parent | 035197c908b57804b9407cf119d2c2fe5934ee00 (diff) |
tty: tty_buffer: invert conditions in __tty_buffer_request_room()
We are used to handle "bad" states in the 'if's in the kernel. Refactor
(invert the two conditions in) __tty_buffer_request_room(), so that the
code returns from the fast paths immediately instead of postponing to
the heavy end of the function.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions