mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
n_tty: remove n_tty_receive_char wrapper
The wrapper was meant as an optimization in commitseb3e4668bd
(n_tty: Un-inline slow-path n_tty_receive_char()) ande60d27c4d8
(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>
This commit is contained in:
parent
ed5aecd3da
commit
7fb8a8affd
1 changed files with 2 additions and 7 deletions
|
@ -1401,7 +1401,7 @@ n_tty_receive_char_special(struct tty_struct *tty, unsigned char c)
|
|||
}
|
||||
|
||||
static inline void
|
||||
n_tty_receive_char_inline(struct tty_struct *tty, unsigned char c)
|
||||
n_tty_receive_char(struct tty_struct *tty, unsigned char c)
|
||||
{
|
||||
struct n_tty_data *ldata = tty->disc_data;
|
||||
|
||||
|
@ -1423,11 +1423,6 @@ n_tty_receive_char_inline(struct tty_struct *tty, unsigned char c)
|
|||
put_tty_queue(c, ldata);
|
||||
}
|
||||
|
||||
static void n_tty_receive_char(struct tty_struct *tty, unsigned char c)
|
||||
{
|
||||
n_tty_receive_char_inline(tty, c);
|
||||
}
|
||||
|
||||
static inline void
|
||||
n_tty_receive_char_fast(struct tty_struct *tty, unsigned char c)
|
||||
{
|
||||
|
@ -1577,7 +1572,7 @@ n_tty_receive_buf_standard(struct tty_struct *tty, const unsigned char *cp,
|
|||
continue;
|
||||
}
|
||||
if (!test_bit(c, ldata->char_map))
|
||||
n_tty_receive_char_inline(tty, c);
|
||||
n_tty_receive_char(tty, c);
|
||||
else if (n_tty_receive_char_special(tty, c) && count) {
|
||||
if (fp)
|
||||
flag = *fp++;
|
||||
|
|
Loading…
Reference in a new issue