n_tty: drop n_tty_receive_buf_fast
authorJiri Slaby <jslaby@suse.cz>
Wed, 5 May 2021 09:18:57 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:57:15 +0000 (16:57 +0200)
commit1ed2dfedd215def180351697f5b4bcde468c5197
tree74246e92558e0d15b63852e6e7a3e72fa4a884e3
parent89bb4a3622f99ea736eab185db9b46b4fa4c29c0
n_tty: drop n_tty_receive_buf_fast

After the previous patches, n_tty_receive_buf_standard and
n_tty_receive_buf_fast differ only in handling of tty line and input
controls. Unlike n_tty_receive_buf_fast, n_tty_receive_buf_standard
handles them all (I_ISTRIP, I_IUCLC, L_IEXTEN, L_EXTPROC, and I_PARMRK).

So remove n_tty_receive_buf_fast and let n_tty_receive_buf_standard do
the handling. Actually most of the tests are only moved from
__receive_buf to n_tty_receive_buf_standard.

Again, the code duplication is not worth the theoretical speedup.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210505091928.22010-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c