Skip to content

Commit

Permalink
serial/omap-serial: Deinline wait_for_xmitr, save 165 bytes
Browse files Browse the repository at this point in the history
This function compiles to 141 bytes of machine code.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Jiri Slaby <jslaby@suse.com>
CC: linux-serial@vger.kernel.org
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Denys Vlasenko authored and Greg Kroah-Hartman committed Dec 14, 2015
1 parent fed76af commit 2172076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ serial_omap_type(struct uart_port *port)

#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)

static inline void wait_for_xmitr(struct uart_omap_port *up)
static void wait_for_xmitr(struct uart_omap_port *up)
{
unsigned int status, tmout = 10000;

Expand Down

0 comments on commit 2172076

Please sign in to comment.