summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/pch_uart.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-05-03 10:08:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-05 22:42:46 +0200
commit9bc995f51d7828bec9b7432f0034b6e31cefb851 (patch)
tree5009424fab864d674bc1d07e3dc2ffd649e85088 /drivers/tty/serial/pch_uart.c
parentfcfb1c3982b9c80d62c94aba2107acd4cb00cc5f (diff)
downloadlinux-9bc995f51d7828bec9b7432f0034b6e31cefb851.tar.bz2
serial: pch: remove debug print from pop_tx
It makes the code overly complicated for no good reason. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220503080808.28332-3-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/pch_uart.c')
-rw-r--r--drivers/tty/serial/pch_uart.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 4fcb6c144b54..a90bdff60908 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -764,7 +764,7 @@ static bool pop_tx(struct eg20t_port *priv, unsigned int size)
struct circ_buf *xmit = &port->state->xmit;
if (uart_tx_stopped(port))
- goto pop_tx_end;
+ return false;
while (!uart_circ_empty(xmit) && count < size) {
iowrite8(xmit->buf[xmit->tail], priv->membase + PCH_UART_THR);
@@ -773,10 +773,6 @@ static bool pop_tx(struct eg20t_port *priv, unsigned int size)
count++;
}
-pop_tx_end:
- dev_dbg(priv->port.dev, "%d characters. Remained %d characters.(%lu)\n",
- count, size - count, jiffies);
-
return count;
}