diff --git a/drivers/serial/serial_dma.c b/drivers/serial/serial_dma.c index 4c9c05a676..0cab635f1e 100644 --- a/drivers/serial/serial_dma.c +++ b/drivers/serial/serial_dma.c @@ -188,14 +188,6 @@ void uart_recvchars_dma(FAR uart_dev_t *dev) bool is_full; int nexthead; - /* If RX buffer is empty move tail and head to zero position */ - - if (rxbuf->head == rxbuf->tail) - { - rxbuf->head = 0; - rxbuf->tail = 0; - } - /* Get the next head index and check if there is room to adding another * byte to the buffer. */