n_tty: remove n_tty_receive_char_fast
authorJiri Slaby <jslaby@suse.cz>
Wed, 5 May 2021 09:18:56 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:57:15 +0000 (16:57 +0200)
commit89bb4a3622f99ea736eab185db9b46b4fa4c29c0
tree3ed8005b275074ed1c022ee8b20573b1d980eaa0
parent7fb8a8affdf1971e89b5977e074e402190dcd6dc
n_tty: remove n_tty_receive_char_fast

n_tty_receive_char_fast is a copy of n_tty_receive_char with one
exception: PARMRK is not doubled in the former. Unify these two and
double PARMRK depending on a newly added parameter (bool parmrk_dbl).

I don't think the theoretical speedup is worth the code duplication.
Which is directly connected with maintenance burden.

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