Browse Source

hw/char/serial: Remove redundant reset

There is no need to invoke the reset method in realize since the reset
framework will do so anyway before the machine starts.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20260305220911.131508-11-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
master
Bernhard Beschow 4 weeks ago
committed by Philippe Mathieu-Daudé
parent
commit
a8a77671b5
  1. 1
      hw/char/serial.c

1
hw/char/serial.c

@ -934,7 +934,6 @@ static void serial_realize(DeviceState *dev, Error **errp)
serial_event, serial_be_change, s, NULL, true);
fifo8_create(&s->recv_fifo, UART_FIFO_LENGTH);
fifo8_create(&s->xmit_fifo, UART_FIFO_LENGTH);
serial_reset(s);
}
static void serial_unrealize(DeviceState *dev)

Loading…
Cancel
Save