diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2023-08-27 07:41:47 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-08-27 09:46:52 +0000 |
| commit | a84853c5954fe2c1b97db2f005ae156dc29ae233 (patch) | |
| tree | c47a076af76b9dab7054b1c0da530d2b8509b090 /drivers/usb/class/cdc-acm.c | |
| parent | tty: n_tty: extract ECHO_OP processing to a separate function (diff) | |
| download | kernel-a84853c5954fe2c1b97db2f005ae156dc29ae233.tar.gz kernel-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)" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
