提交 b1835d23 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

serial: 8250_dma: no need to set tx_err twice

In the serial8250_tx_dma() the tx_err flag is set in case of error. Thus, there
is no need to repeat this in __dma_tx_complete().
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2dc98946
...@@ -39,7 +39,6 @@ static void __dma_tx_complete(void *param) ...@@ -39,7 +39,6 @@ static void __dma_tx_complete(void *param)
ret = serial8250_tx_dma(p); ret = serial8250_tx_dma(p);
if (ret) { if (ret) {
dma->tx_err = 1;
p->ier |= UART_IER_THRI; p->ier |= UART_IER_THRI;
serial_port_out(&p->port, UART_IER, p->ier); serial_port_out(&p->port, UART_IER, p->ier);
} }
...@@ -93,7 +92,6 @@ int serial8250_tx_dma(struct uart_8250_port *p) ...@@ -93,7 +92,6 @@ int serial8250_tx_dma(struct uart_8250_port *p)
} }
dma->tx_running = 1; dma->tx_running = 1;
desc->callback = __dma_tx_complete; desc->callback = __dma_tx_complete;
desc->callback_param = p; desc->callback_param = p;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册