n_tty: remove n_tty_receive_char wrapper
authorJiri Slaby <jslaby@suse.cz>
Wed, 5 May 2021 09:18:55 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:57:15 +0000 (16:57 +0200)
commit7fb8a8affdf1971e89b5977e074e402190dcd6dc
tree75110d969ad30b03ab64d518904515b108171a18
parented5aecd3da2eabd8a6c9f5593df2c4f00985fca2
n_tty: remove n_tty_receive_char wrapper

The wrapper was meant as an optimization in commits eb3e4668bd9e (n_tty:
Un-inline slow-path n_tty_receive_char()) and e60d27c4d8b3 (n_tty:
Factor LNEXT processing from per-char i/o path). But the current
compiler (gcc 10) inlines it anyway (as expected). Actually, I'm not
sure it ever didn't. It would need to be marked with the noinline
attribute.

So remove this useless wrapper.

And if we ever introduce something similar, we need confirming numbers
first.

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