Bladeren bron

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: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Hurley 11 jaren geleden
bovenliggende
commit
8dc4b25d23
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      drivers/tty/n_tty.c

+ 1 - 2
drivers/tty/n_tty.c

@@ -1442,8 +1442,7 @@ n_tty_receive_char_fast(struct tty_struct *tty, unsigned char c)
 	put_tty_queue(c, ldata);
 }
 
-static inline void
-n_tty_receive_char_closing(struct tty_struct *tty, unsigned char c)
+static void n_tty_receive_char_closing(struct tty_struct *tty, unsigned char c)
 {
 	if (I_ISTRIP(tty))
 		c &= 0x7f;