diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 8701c1e6c36..981847a0976 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -691,13 +691,6 @@ static int uart_close(FAR struct file *filep) (void)uart_tcdrain(dev, 4 * TICK_PER_SEC); } - /* Mark the I/O buffers empty */ - - dev->xmit.head = 0; - dev->xmit.tail = 0; - dev->recv.head = 0; - dev->recv.tail = 0; - /* Free the IRQ and disable the UART */ flags = enter_critical_section(); /* Disable interrupts */