mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
serial: sh-sci: tail is already on valid range
There is no need to and tail with UART_XMIT_SIZE - 1 because tail is already on valid range. Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220823141839.165244-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a54dc4b381
commit
575ca2cb89
@ -1407,7 +1407,7 @@ static void sci_dma_tx_work_fn(struct work_struct *work)
|
||||
spin_lock_irq(&port->lock);
|
||||
head = xmit->head;
|
||||
tail = xmit->tail;
|
||||
buf = s->tx_dma_addr + (tail & (UART_XMIT_SIZE - 1));
|
||||
buf = s->tx_dma_addr + tail;
|
||||
s->tx_dma_len = CIRC_CNT_TO_END(head, tail, UART_XMIT_SIZE);
|
||||
if (!s->tx_dma_len) {
|
||||
/* Transmit buffer has been flushed */
|
||||
|
Loading…
Reference in New Issue
Block a user