Skip to content
Snippets Groups Projects
Commit 8dc4b25d authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

n_tty: Un-inline slow-path n_tty_receive_char_closing()


Although n_tty_receive_char_closing() only has one call-site,
let the compiler inline instead.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb3e4668
No related branches found
No related tags found
No related merge requests found
...@@ -1442,8 +1442,7 @@ n_tty_receive_char_fast(struct tty_struct *tty, unsigned char c) ...@@ -1442,8 +1442,7 @@ n_tty_receive_char_fast(struct tty_struct *tty, unsigned char c)
put_tty_queue(c, ldata); put_tty_queue(c, ldata);
} }
static inline void static void n_tty_receive_char_closing(struct tty_struct *tty, unsigned char c)
n_tty_receive_char_closing(struct tty_struct *tty, unsigned char c)
{ {
if (I_ISTRIP(tty)) if (I_ISTRIP(tty))
c &= 0x7f; c &= 0x7f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment