summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-07-06 11:29:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 16:31:34 -0700
commit99ecb001f52ef10ebf686d4e55b1cf64b1e56aa6 (patch)
tree5ae0e765c1e9a7f1da073760c033e16c2b953f26 /drivers
parentc557d392fbf5badd693ea1946a4317c87a26a716 (diff)
downloadlinux-99ecb001f52ef10ebf686d4e55b1cf64b1e56aa6.tar.gz
linux-99ecb001f52ef10ebf686d4e55b1cf64b1e56aa6.tar.bz2
linux-99ecb001f52ef10ebf686d4e55b1cf64b1e56aa6.zip
serial: arc_uart: Use uart_circ_empty() for open-coded comparison
Replace open-coded test for empty tx ring buffer with equivalent helper function, uart_circ_empty(). No functional change. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/arc_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c
index c9f5c9dcc15c..008c223eaf26 100644
--- a/drivers/tty/serial/arc_uart.c
+++ b/drivers/tty/serial/arc_uart.c
@@ -177,7 +177,7 @@ static void arc_serial_tx_chars(struct arc_uart_port *uart)
uart->port.icount.tx++;
uart->port.x_char = 0;
sent = 1;
- } else if (xmit->tail != xmit->head) { /* TODO: uart_circ_empty */
+ } else if (!uart_circ_empty(xmit)) {
ch = xmit->buf[xmit->tail];
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
uart->port.icount.tx++;