diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-08-27 09:41:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-27 11:46:52 +0200 |
commit | a84853c5954fe2c1b97db2f005ae156dc29ae233 (patch) | |
tree | c47a076af76b9dab7054b1c0da530d2b8509b090 /sound | |
parent | 2aa91851ffa7cdfc0a63330d273115d38324b585 (diff) | |
download | linux-stable-a84853c5954fe2c1b97db2f005ae156dc29ae233.tar.gz linux-stable-a84853c5954fe2c1b97db2f005ae156dc29ae233.tar.bz2 linux-stable-a84853c5954fe2c1b97db2f005ae156dc29ae233.zip |
tty: n_tty: deduplicate copy code in n_tty_receive_buf_real_raw()
The code is duplicated to perform the copy twice -- to handle buffer
wrap-around. Instead of the duplication, roll this into the loop.
(And add some blank lines around to have the code a bit more readable.)
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230827074147.2287-15-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions